mirror of
https://github.com/Powerful-517/yys-editor.git
synced 2026-03-05 06:55:26 +00:00
fix: bundle all dependencies except vue/element-plus/pinia to avoid ESM interop issues
This commit is contained in:
@@ -30,20 +30,11 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
// 外部化依赖(不打包进库)
|
// 外部化依赖(不打包进库)
|
||||||
// 注意:classnames 不设为 external,让它打包进来,避免 ESM/CommonJS 互操作问题
|
// 只保留最核心的依赖为 external,其他全部打包进来避免模块系统兼容问题
|
||||||
external: [
|
external: [
|
||||||
'vue',
|
'vue',
|
||||||
'element-plus',
|
'element-plus',
|
||||||
'pinia',
|
'pinia'
|
||||||
'@logicflow/core',
|
|
||||||
'@logicflow/extension',
|
|
||||||
'@logicflow/vue-node-registry',
|
|
||||||
'@element-plus/icons-vue',
|
|
||||||
'@vueup/vue-quill',
|
|
||||||
'vue3-draggable-resizable',
|
|
||||||
'vuedraggable',
|
|
||||||
'html2canvas',
|
|
||||||
'vue-i18n'
|
|
||||||
],
|
],
|
||||||
output: {
|
output: {
|
||||||
// 全局变量名
|
// 全局变量名
|
||||||
|
|||||||
Reference in New Issue
Block a user