Skip to content

Commit

Permalink
Copy ESM modules into separate govuk-esm folder in package
Browse files Browse the repository at this point in the history
Playing around with esm modules in govuk-frontend.

Based on original work by @domoscargin who did the initial investigation
into different approaches for this. This commit explores option 3 more.
#711 (comment)
  • Loading branch information
Vanita Barrett committed Mar 2, 2022
1 parent ca26f5e commit 8cf2c1d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"description": "GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.",
"version": "4.0.1",
"main": "govuk/all.js",
"module": "govuk-esm/all.mjs",
"exports": {
"import": "./govuk-esm/all.mjs",
"require": "./govuk/all.js"
},
"sideEffects": false,
"sass": "govuk/all.scss",
"engines": {
"node": ">= 4.2.0"
Expand Down

0 comments on commit 8cf2c1d

Please sign in to comment.