This commit is contained in:
陈裕财
2025-04-15 09:37:40 +08:00
parent db7734c095
commit 4f22e92d93
4 changed files with 11 additions and 11 deletions

View File

@@ -1,7 +0,0 @@
const path = require('path')
const fs = require('fs')
const libPackagePath = path.join(__dirname, 'src/plugins/datav/patch/package.json')
const modulesPackagePath = path.join(__dirname, 'node_modules/@dataview/datav-vue3/package.json')
fs.writeFileSync(modulesPackagePath, fs.readFileSync(libPackagePath))

View File

@@ -22,8 +22,7 @@
"lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src",
"lint:format": "prettier --write --loglevel warn \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
"lint:style": "stylelint --fix \"./src/**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
"lint:lint-staged": "lint-staged -c ",
"postinstall": "node install-datav-patch.js"
"lint:lint-staged": "lint-staged -c "
},
"dependencies": {
"@dataview/datav-vue3": "0.0.0-test.1672506674342",
@@ -51,7 +50,7 @@
"docxtemplater-image-module-free": "^1.1.1",
"driver.js": "^1.3.1",
"echarts": "^5.5.1",
"echarts-wordcloud": "^2.1.0",
"echarts-wordcloud": "2.1.0",
"element-plus": "2.9.7",
"fast-xml-parser": "^4.4.1",
"file-saver": "^2.0.5",

View File

@@ -1,5 +1,6 @@
// 引入unocss css
import '@/plugins/unocss'
//import '@/plugins/unocss'
import 'virtual:uno.css' // 必须引入以生成 CSS 占位符
// 导入全局的svg图标
import '@/plugins/svgIcon'

View File

@@ -94,6 +94,13 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
drop_debugger: env.VITE_DROP_DEBUGGER === 'true',
drop_console: env.VITE_DROP_CONSOLE === 'true'
}
},
rollupOptions: {
preserveEntrySignatures: 'strict',
treeshake: {
moduleSideEffects: (id) =>
id.includes('zrender') || true
}
}
},
optimizeDeps: { include, exclude }