diff --git a/vite.config.ts b/vite.config.ts index 6aadce0..eac8517 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -27,7 +27,8 @@ export default defineConfig(({ mode, command }) => { AutoImport({ resolvers: [ TDesignResolver({ - library: 'mobile-vue' + library: 'mobile-vue', + esm: true }), VantResolver({ importStyle: true @@ -42,7 +43,8 @@ export default defineConfig(({ mode, command }) => { Components({ resolvers: [ TDesignResolver({ - library: 'mobile-vue' + library: 'mobile-vue', + esm: true }), VantResolver({ importStyle: true