vue3引入vue-i18n
警告:
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-i18n版本"vue-i18n": "^9.1.9",
import { createI18n } from 'vue-i18n';
// 改成
import { createI18n } from 'vue-i18n/dist/vue-i18n.cjs.js';
标签:vue,createI18n,bundler,i18n,import,警告
From: https://www.cnblogs.com/my-wl/p/16738758.html