fix: externalize classnames to fix import issues

This commit is contained in:
2026-02-20 21:04:26 +08:00
parent 15bae3be81
commit d927378965
2 changed files with 9 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "yys-editor", "name": "yys-editor",
"version": "1.0.0", "version": "1.0.1",
"description": "阴阳师流程图编辑器 - 可嵌入式组件", "description": "阴阳师流程图编辑器 - 可嵌入式组件",
"author": "yys-editor team", "author": "yys-editor team",
"license": "MIT", "license": "MIT",
@@ -17,7 +17,12 @@
"./style.css": "./dist/yys-editor.css" "./style.css": "./dist/yys-editor.css"
}, },
"files": [ "files": [
"dist" "dist/yys-editor.css",
"dist/yys-editor.es.js",
"dist/yys-editor.es.js.map",
"dist/yys-editor.umd.js",
"dist/yys-editor.umd.js.map",
"dist/YysEditorEmbed.d.ts"
], ],
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@@ -42,7 +42,8 @@ export default defineConfig({
'vue3-draggable-resizable', 'vue3-draggable-resizable',
'vuedraggable', 'vuedraggable',
'html2canvas', 'html2canvas',
'vue-i18n' 'vue-i18n',
'classnames'
], ],
output: { output: {
// 全局变量名 // 全局变量名