vue-i18n告警处理
在浏览器控制台中出现
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.config.js中加上以下代码:
chainWebpack: config => {//去掉v-i18n浏览器告警部分
config.resolve.alias.set('vue-i18n', 'vue-i18n/dist/vue-i18n.cjs.js')
}