This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git
The following commit(s) were added to refs/heads/master by this push:
new 27d6073e fix webpack bundle can't work in node > 16
27d6073e is described below
commit 27d6073e7d2d09f616b7ed6772c907cada106a1e
Author: plainheart <[email protected]>
AuthorDate: Sat Feb 3 09:36:53 2024 +0800
fix webpack bundle can't work in node > 16
---
package-lock.json | 28 ++++++++++++++++++++++++++++
package.json | 5 +++--
2 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 516ccf7e..58a8609c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -28,6 +28,7 @@
"chalk": "^3.0.0",
"concurrently": "^7.4.0",
"copy-dir": "^0.3.0",
+ "cross-env": "^7.0.3",
"css-loader": "^3.5.3",
"file-loader": "^4.3.0",
"fs-extra": "^8.1.0",
@@ -3457,6 +3458,24 @@
"sha.js": "^2.4.8"
}
},
+ "node_modules/cross-env": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
+ "integrity":
"sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
+ "dev": true,
+ "dependencies": {
+ "cross-spawn": "^7.0.1"
+ },
+ "bin": {
+ "cross-env": "src/bin/cross-env.js",
+ "cross-env-shell": "src/bin/cross-env-shell.js"
+ },
+ "engines": {
+ "node": ">=10.14",
+ "npm": ">=6",
+ "yarn": ">=1"
+ }
+ },
"node_modules/cross-spawn": {
"version": "7.0.3",
"resolved":
"https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
@@ -11802,6 +11821,15 @@
"sha.js": "^2.4.8"
}
},
+ "cross-env": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
+ "integrity":
"sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
+ "dev": true,
+ "requires": {
+ "cross-spawn": "^7.0.1"
+ }
+ },
"cross-spawn": {
"version": "7.0.3",
"resolved":
"https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
diff --git a/package.json b/package.json
index f79e7110..45ba5db6 100644
--- a/package.json
+++ b/package.json
@@ -10,8 +10,8 @@
"build": "node build.js --env asf",
"watch": "node build.js --env dev --watch",
"localsite": "node build.js --env localsite",
- "build:site": "npx webpack --config build/webpack.config.js --mode
production",
- "watch:site": "npx webpack --config build/webpack.config.js --mode
development --devtool sourcemap --watch",
+ "build:site": "cross-env NODE_OPTIONS=--openssl-legacy-provider webpack
--config build/webpack.config.js --mode production",
+ "watch:site": "cross-env NODE_OPTIONS=--openssl-legacy-provider webpack
--config build/webpack.config.js --mode development --devtool sourcemap
--watch",
"server": "node server.js",
"format": "node tool/format.js",
"dev": "npx concurrently --kill-others \"npm:watch\" \"npm:watch:site\"
\"npm:server\""
@@ -24,6 +24,7 @@
"chalk": "^3.0.0",
"concurrently": "^7.4.0",
"copy-dir": "^0.3.0",
+ "cross-env": "^7.0.3",
"css-loader": "^3.5.3",
"file-loader": "^4.3.0",
"fs-extra": "^8.1.0",
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]