Use runtime-only build for vue-i18n (#684)

This commit is contained in:
Kavin 2021-12-19 19:46:42 +00:00 committed by GitHub
parent 64db39eea9
commit 05ab126337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,11 +18,20 @@ module.exports = {
], ],
}, },
}, },
configureWebpack: {
resolve: {
alias: {
"vue-i18n": "vue-i18n/dist/vue-i18n.runtime.esm-bundler.js",
},
},
},
pluginOptions: { pluginOptions: {
i18n: { i18n: {
locale: "en", locale: "en",
fallbackLocale: "en",
localeDir: "locales", localeDir: "locales",
fullInstall: true, fullInstall: true,
enableLegacy: false,
}, },
}, },
}; };