Skip to content

Commit

Permalink
fix: --experimental-json-modules flag is needed when node < 18
Browse files Browse the repository at this point in the history
  • Loading branch information
tyn1998 committed Jun 13, 2023
1 parent 985ddce commit a4b7973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gi-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"main": "dist/app.js",
"scripts": {
"analyse": "ANALYZE=1 NODE_OPTIONS=--max_old_space_size=4096 umi build",
"build": "node scripts/pre-build.mjs && NODE_OPTIONS=--max_old_space_size=4096 umi build",
"build": "node --experimental-json-modules scripts/pre-build.mjs && NODE_OPTIONS=--max_old_space_size=4096 umi build",
"build:docker": "cd ../../ && npm run build:all:umd && cd packages/gi-site/ && BUILD_MODE=docker node scripts/pre-build.mjs && node scripts/copy-assets.mjs && BUILD_MODE=docker NODE_OPTIONS=--max_old_space_size=4096 umi build",
"deploy": "node ./scripts/deploy.js",
"start": "node scripts/pre-build.mjs && cross-env NODE_OPTIONS=--max_old_space_size=4096 cross-env PORT=8000 umi dev"
"start": "node --experimental-json-modules scripts/pre-build.mjs && cross-env NODE_OPTIONS=--max_old_space_size=4096 cross-env PORT=8000 umi dev"
},
"dependencies": {
"@ant-design/charts": "^1.0.21",
Expand Down

0 comments on commit a4b7973

Please sign in to comment.