build: use commonjs config for webpack (#449)

This commit is contained in:
Adam Uhlíř
2022-06-28 12:28:53 +02:00
committed by GitHub
parent 58bea4e7a8
commit ec13357666
3 changed files with 4 additions and 33 deletions
+1 -2
View File
@@ -93,7 +93,6 @@
"babel-plugin-syntax-dynamic-import": "6.18.0",
"babel-plugin-tsconfig-paths": "1.0.2",
"cors": "^2.8.5",
"cross-env": "^7.0.3",
"depcheck": "^1.4.3",
"env-paths": "^3.0.0",
"eslint": "8.17.0 ",
@@ -127,7 +126,7 @@
"start": "react-scripts start",
"desktop": "node ./desktop.mjs",
"build": "react-scripts build",
"build:component": "cross-env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' webpack --mode=production",
"build:component": "webpack --mode=production",
"compile:types": "tsc --project tsconfig.lib.json --emitDeclarationOnly --declaration",
"test": "react-scripts test",
"serve": "node ./serve.js",