diff --git a/vite.config.ts b/vite.config.ts index 5c0586f7..79f05a76 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -22,6 +22,10 @@ export default defineConfig({ { find: '@', replacement: pathResolve('src') + }, + { + find: 'vue-i18n', + replacement: 'vue-i18n/dist/vue-i18n.cjs.js', //解决i8n警告 } ], dedupe: ['vue']