From 0ec158b49b22d80b1d0b05d7429e91ba32411226 Mon Sep 17 00:00:00 2001 From: userquin Date: Sun, 18 Jul 2021 15:28:12 +0200 Subject: [PATCH] chore: optimize vue-i18n (#152) --- vite.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 798b94c..1a3414e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -111,6 +111,8 @@ export default defineConfig({ // https://github.com/intlify/vite-plugin-vue-i18n VueI18n({ + runtimeOnly: true, + compositionOnly: true, include: [path.resolve(__dirname, 'locales/**')], }), ],