fix: some small chang

This commit is contained in:
xiaoxian521
2021-04-29 03:12:44 +08:00
parent b1751beab9
commit 074213c656
6 changed files with 239 additions and 97 deletions

View File

@@ -15,7 +15,8 @@ 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.
//解决开发环境下的警告 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.
"vue-i18n": "vue-i18n/dist/vue-i18n.cjs.js",
};
const root: string = process.cwd();