Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defer prototype application.js to load after plugin scripts #2359

Merged
merged 2 commits into from
Oct 11, 2023

Commits on Oct 10, 2023

  1. Update application.js to <script type"module">

    This enables ES module imports by default:
    
    ```
    import { Component } from '/plugin-assets/plugin-name/example.js'
    ```
    
    Since GOV.UK Frontend v5 also uses `<script type="module">`, this change also ensures application.js executes after `window.GOVUKFrontend` is ready
    colinrotherham committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    07f765a View commit details
    Browse the repository at this point in the history
  2. Add changelog entry

    colinrotherham committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    28b2756 View commit details
    Browse the repository at this point in the history