0
点赞
收藏
分享

微信扫一扫

解决警告You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler

//解决警告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 => {
    config.resolve.alias.set('vue-i18n', 'vue-i18n/dist/vue-i18n.cjs.js')
}

添加上面那个就可以关闭了

这个报错信息是什么意思 我就不懂了。

举报
0 条评论