Skip to content

Commit

Permalink
fix: force webpack to load ESM config
Browse files Browse the repository at this point in the history
since node 16.6 webpack-cli fails to load esm config unless WEBPACK_CLI_FORCE_LOAD_ESM_CONFIG=true

see: nodejs/node#39175
see: https://github.com/webpack/webpack-cli/blob/a660ffcbeb2807bce1554f787297e697464abd59/packages/webpack-cli/lib/webpack-cli.js#L50-L51

License: (Apache-2.0 AND MIT)
Signed-off-by: Oli Evans <oli@tableflip.io>
  • Loading branch information
olizilla committed Jul 30, 2021
1 parent 85b3199 commit e99ce8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "wrangler dev --env $(whoami)",
"dev": "wrangler dev --env $(whoami)",
"publish": "wrangler publish --env $(whoami)",
"build": "webpack",
"build": "WEBPACK_CLI_FORCE_LOAD_ESM_CONFIG=true webpack",
"test": "npm-run-all -p -r mock:cluster mock:db test:e2e -s test:size",
"test:size": "bundlesize",
"test:e2e": "playwright-test \"test/**/*.spec.js\" --sw src/index.js -b webkit",
Expand Down

0 comments on commit e99ce8c

Please sign in to comment.