feat: 增加测试导入插件(已禁用), 更新vue版本

This commit is contained in:
539943419 committed 2024-09-04 10:38:19 +08:00
1 parent f0748997be
commit afb2440d8b
5 files changed
+263 -268

No files matched your search

+9 -14
View File
@@ -59,21 +59,16 @@ export default defineConfig({
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html')
main: '/src/index.ts'
},
output: {
// 配置输出为单文件
// inlineDynamicImports: true,
// manualChunks(id) {
// 加了会有bug
// if (id.includes('@codemirror')) {
// return id.split('@')[1].replace('+', '-')
// }
// }
// entryFileNames: 'bundle.js',
// format: 'iife', // 立即执行函数格式
// name: 'MyBundle'
}
// output: {
// entryFileNames: (chunkInfo) => {
// if (chunkInfo.name === 'main') {
// return 'main.js'
// }
// return '[name].[hash].js'
// }
// }
}
}
})