reduce js bundle size by loading locales dynamically instead of loading all locales

This commit is contained in:
Athou
2023-05-23 16:24:35 +02:00
parent bc7c50f0f3
commit 4eacd238fa
3 changed files with 122 additions and 177 deletions

View File

@@ -1,3 +1,4 @@
import { lingui } from "@lingui/vite-plugin"
import react from "@vitejs/plugin-react"
import { visualizer } from "rollup-plugin-visualizer"
import { defineConfig } from "vite"
@@ -13,6 +14,7 @@ export default defineConfig({
plugins: ["macros"],
},
}),
lingui(),
eslint(),
tsconfigPaths(),
visualizer(),