Commit 024db790 by zhangxingmin

push

parent 29aa26ff
// vite.config.js // vite.config.mjs(保持内容不变,仅改扩展名)
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue'; import vue from '@vitejs/plugin-vue';
import path from 'path'; import path from 'path';
...@@ -8,7 +8,6 @@ export default defineConfig({ ...@@ -8,7 +8,6 @@ export default defineConfig({
vue({ vue({
template: { template: {
compilerOptions: { compilerOptions: {
// 解决模板解析问题
isCustomElement: (tag) => tag.startsWith('uni-') isCustomElement: (tag) => tag.startsWith('uni-')
} }
} }
...@@ -31,7 +30,7 @@ export default defineConfig({ ...@@ -31,7 +30,7 @@ export default defineConfig({
}, },
build: { build: {
commonjsOptions: { commonjsOptions: {
transformMixedEsModules: true // 解决 CommonJS/ESM 混合问题 transformMixedEsModules: true
} }
} }
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment