Skip to content

Commit e99ce8c

Browse files
committed
fix: force webpack to load ESM config
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>
1 parent 85b3199 commit e99ce8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"start": "wrangler dev --env $(whoami)",
1212
"dev": "wrangler dev --env $(whoami)",
1313
"publish": "wrangler publish --env $(whoami)",
14-
"build": "webpack",
14+
"build": "WEBPACK_CLI_FORCE_LOAD_ESM_CONFIG=true webpack",
1515
"test": "npm-run-all -p -r mock:cluster mock:db test:e2e -s test:size",
1616
"test:size": "bundlesize",
1717
"test:e2e": "playwright-test \"test/**/*.spec.js\" --sw src/index.js -b webkit",

0 commit comments

Comments
 (0)