警告信息:
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.
Cli相关版本: "@dcloudio/uni-app": "3.0.0-alpha-3060420220922009"
HBuilderX: 3.6.4
Vite: ^3.1.8
试了网上的在vite.config.ts加入alias的代码,还是不行:
import { defineConfig } from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
export default defineConfig({
resolve: {
alias: {
'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js'
}
},
plugins: [uni()]
});
Anet (作者)
没有处理
2023-03-20 16:01