fix:解决vue-i18n在开发环境下的告警

This commit is contained in:
张益铭
2021-03-04 16:04:06 +08:00
parent f886cbf0da
commit f2db3acee2
3 changed files with 31 additions and 30 deletions

View File

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