You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampark.apache.org by be...@apache.org on 2023/03/24 02:55:13 UTC
[incubator-streampark] branch dev updated: [Fix]: npm compilation errors in rollup (#2502)
This is an automated email from the ASF dual-hosted git repository.
benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
The following commit(s) were added to refs/heads/dev by this push:
new 16423b1c9 [Fix]: npm compilation errors in rollup (#2502)
16423b1c9 is described below
commit 16423b1c9ddad2d3535978cd79d7b52aeb237904
Author: WSZ <12...@qq.com>
AuthorDate: Fri Mar 24 10:55:08 2023 +0800
[Fix]: npm compilation errors in rollup (#2502)
---
.../streampark-console-webapp/package.json | 9 ++++-----
.../streampark-console-webapp/vite.config.ts | 20 ++++++++++----------
2 files changed, 14 insertions(+), 15 deletions(-)
diff --git a/streampark-console/streampark-console-webapp/package.json b/streampark-console/streampark-console-webapp/package.json
index 5fd5a9ef0..6fca06402 100644
--- a/streampark-console/streampark-console-webapp/package.json
+++ b/streampark-console/streampark-console-webapp/package.json
@@ -89,7 +89,6 @@
"@vue/compiler-sfc": "^3.2.47",
"autoprefixer": "^10.4.13",
"commitizen": "^4.2.5",
- "conventional-changelog-cli": "^2.2.2",
"cross-env": "^7.0.3",
"dotenv": "^16.0.3",
"eslint": "^8.29.0",
@@ -106,8 +105,8 @@
"postcss-less": "^6.0.0",
"prettier": "^2.8.0",
"rimraf": "^3.0.2",
- "rollup": "^3.6.0",
- "rollup-plugin-visualizer": "^5.8.3",
+ "rollup": "^3.20.1",
+ "rollup-plugin-visualizer": "^5.9.0",
"stylelint": "^14.16.0",
"stylelint-config-prettier": "^9.0.4",
"stylelint-config-recommended": "^9.0.0",
@@ -120,11 +119,11 @@
"vite-plugin-compression": "^0.5.1",
"vite-plugin-html": "^3.2.0",
"vite-plugin-imagemin": "^0.6.1",
- "vite-plugin-purge-icons": "^0.9.1",
+ "vite-plugin-purge-icons": "^0.9.2",
"vite-plugin-style-import": "^2.0.0",
"vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-theme": "^0.8.6",
- "vite-plugin-windicss": "^1.8.8",
+ "vite-plugin-windicss": "^1.8.10",
"vue-eslint-parser": "^9.1.0",
"vue-tsc": "^1.2.0"
},
diff --git a/streampark-console/streampark-console-webapp/vite.config.ts b/streampark-console/streampark-console-webapp/vite.config.ts
index 93cc71576..edb6b6a4c 100644
--- a/streampark-console/streampark-console-webapp/vite.config.ts
+++ b/streampark-console/streampark-console-webapp/vite.config.ts
@@ -34,7 +34,7 @@ const __APP_INFO__ = {
pkg: { dependencies, devDependencies, name, version },
lastBuildTime: dayjs().format('YYYY-MM-DD HH:mm:ss'),
};
-const prefix = 'monaco-editor/esm/vs';
+// const prefix = 'monaco-editor/esm/vs';
export default ({ command, mode }: ConfigEnv): UserConfig => {
const root = process.cwd();
@@ -99,15 +99,15 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
chunkSizeWarningLimit: 2000,
// monaco editor
rollupOptions: {
- output: {
- manualChunks: {
- jsonWorker: [`${prefix}/language/json/json.worker`],
- cssWorker: [`${prefix}/language/css/css.worker`],
- htmlWorker: [`${prefix}/language/html/html.worker`],
- tsWorker: [`${prefix}/language/typescript/ts.worker`],
- editorWorker: [`${prefix}/editor/editor.worker`],
- },
- },
+ // output: {
+ // manualChunks: {
+ // jsonWorker: [`${prefix}/language/json/json.worker`],
+ // cssWorker: [`${prefix}/language/css/css.worker`],
+ // htmlWorker: [`${prefix}/language/html/html.worker`],
+ // tsWorker: [`${prefix}/language/typescript/ts.worker`],
+ // editorWorker: [`${prefix}/editor/editor.worker`],
+ // },
+ // },
},
},
define: {