mirror of
https://github.com/Powerful-517/yys-editor.git
synced 2026-03-05 06:55:26 +00:00
fix: remove classnames from external to avoid ESM interop issues
This commit is contained in:
@@ -30,6 +30,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
// 外部化依赖(不打包进库)
|
// 外部化依赖(不打包进库)
|
||||||
|
// 注意:classnames 不设为 external,让它打包进来,避免 ESM/CommonJS 互操作问题
|
||||||
external: [
|
external: [
|
||||||
'vue',
|
'vue',
|
||||||
'element-plus',
|
'element-plus',
|
||||||
@@ -42,8 +43,7 @@ export default defineConfig({
|
|||||||
'vue3-draggable-resizable',
|
'vue3-draggable-resizable',
|
||||||
'vuedraggable',
|
'vuedraggable',
|
||||||
'html2canvas',
|
'html2canvas',
|
||||||
'vue-i18n',
|
'vue-i18n'
|
||||||
'classnames'
|
|
||||||
],
|
],
|
||||||
output: {
|
output: {
|
||||||
// 全局变量名
|
// 全局变量名
|
||||||
|
|||||||
Reference in New Issue
Block a user