chore: Update vite.config.ts to enable ES modules for mobile-vue library
All checks were successful
CI / cache-and-install (push) Successful in 20m5s

This commit is contained in:
严浩
2024-08-06 10:58:08 +08:00
parent 938fda2b3c
commit 5c11b15c1b

View File

@ -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