chore: Update vite.config.ts to enable ES modules for mobile-vue library
This commit is contained in:
@@ -27,7 +27,8 @@ export default defineConfig(({ mode, command }) => {
|
|||||||
AutoImport({
|
AutoImport({
|
||||||
resolvers: [
|
resolvers: [
|
||||||
TDesignResolver({
|
TDesignResolver({
|
||||||
library: 'mobile-vue'
|
library: 'mobile-vue',
|
||||||
|
esm: true
|
||||||
}),
|
}),
|
||||||
VantResolver({
|
VantResolver({
|
||||||
importStyle: true
|
importStyle: true
|
||||||
@@ -42,7 +43,8 @@ export default defineConfig(({ mode, command }) => {
|
|||||||
Components({
|
Components({
|
||||||
resolvers: [
|
resolvers: [
|
||||||
TDesignResolver({
|
TDesignResolver({
|
||||||
library: 'mobile-vue'
|
library: 'mobile-vue',
|
||||||
|
esm: true
|
||||||
}),
|
}),
|
||||||
VantResolver({
|
VantResolver({
|
||||||
importStyle: true
|
importStyle: true
|
||||||
|
Reference in New Issue
Block a user