From 5c11b15c1bac5775cff0e395e552f1d735af8fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Tue, 6 Aug 2024 10:58:08 +0800 Subject: [PATCH] chore: Update vite.config.ts to enable ES modules for mobile-vue library --- vite.config.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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