1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

vite: enable preloading and make sure we load the right dev/prod deps

This commit is contained in:
Quentin Gliech
2024-07-31 12:05:13 +02:00
parent 5edeb59ef3
commit f988aa0d7e

View File

@ -50,14 +50,13 @@ export default defineConfig((env) => ({
define: {
"import.meta.vitest": "undefined",
"process.env.NODE_ENV": JSON.stringify(env.mode),
},
build: {
manifest: "manifest.json",
assetsDir: "",
assetsInlineLimit: 0,
sourcemap: true,
modulePreload: false,
target: browserslistToEsbuild(),
cssCodeSplit: true,