Skip to content

Commit

Permalink
fix: 修复vue-i18n文件打包引入错误bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Mar 14, 2023
1 parent 5391f33 commit 26225f8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,15 @@ export default async (configEnv: ConfigEnv): Promise<UserConfigExport> => {
output: {
manualChunks: {
// 打包优化
core: ['vue', 'vue-router', 'pinia', 'vue-request', 'vue-i18n/dist/vue-i18n.cjs.js', 'jquery', 'axios'],
core: [
'vue',
'vue-router',
'pinia',
'vue-request',
'vue-i18n/dist/vue-i18n.esm-bundler.js',
'jquery',
'axios',
],
elIcon: ['@element-plus/icons-vue'],
mock: [pathResolve('./mock')],
},
Expand Down

0 comments on commit 26225f8

Please sign in to comment.