You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-07 17:03:01 +03:00
vite: enable preloading and make sure we load the right dev/prod deps
This commit is contained in:
@@ -50,14 +50,13 @@ export default defineConfig((env) => ({
|
|||||||
|
|
||||||
define: {
|
define: {
|
||||||
"import.meta.vitest": "undefined",
|
"import.meta.vitest": "undefined",
|
||||||
|
"process.env.NODE_ENV": JSON.stringify(env.mode),
|
||||||
},
|
},
|
||||||
|
|
||||||
build: {
|
build: {
|
||||||
manifest: "manifest.json",
|
manifest: "manifest.json",
|
||||||
assetsDir: "",
|
assetsDir: "",
|
||||||
assetsInlineLimit: 0,
|
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
modulePreload: false,
|
|
||||||
target: browserslistToEsbuild(),
|
target: browserslistToEsbuild(),
|
||||||
cssCodeSplit: true,
|
cssCodeSplit: true,
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user