Master #1

Open
cnbugs wants to merge 20 commits from master into 0.0.1
Showing only changes of commit ee0552f837 - Show all commits
+1 -6
View File
@@ -1,5 +1,4 @@
import { fileURLToPath, URL } from 'node:url' import { fileURLToPath, URL } from 'node:url'
import path from 'node:path'
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue' import vue from '@vitejs/plugin-vue'
@@ -9,11 +8,7 @@ export default defineConfig({
plugins: [vue()], plugins: [vue()],
resolve: { resolve: {
alias: { alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)), '@': fileURLToPath(new URL('./src', import.meta.url))
// 兜底:若 element-plus exports 解析失败则走 fallback
'element-plus': path.resolve(
fileURLToPath(new URL('node_modules/element-plus/es/index.mjs', import.meta.url))
)
} }
}, },
server: { server: {