mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2026-01-20 16:53:37 +08:00
fix:解决vue-i18n在开发环境下的告警
This commit is contained in:
@@ -13,6 +13,7 @@ const { VITE_PORT, VITE_PUBLIC_PATH, VITE_PROXY, VITE_OPEN } = loadEnv()
|
||||
|
||||
const alias: Record<string, string> = {
|
||||
'/@': pathResolve('src'),
|
||||
'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js' //解决警告You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.
|
||||
}
|
||||
|
||||
const root: string = process.cwd()
|
||||
|
||||
Reference in New Issue
Block a user