Iterate NODE_ENV

This commit is contained in:
Michael Telatynski
2026-06-04 13:42:01 +01:00
parent f5d93099e3
commit cfab5cc659
4 changed files with 24 additions and 28 deletions
@@ -38,13 +38,6 @@ export default defineConfig({
react: "window.React",
},
},
transform: {
define: {
// Use production mode for the build as it is tested against production builds of Element Web,
// this is required for React JSX versions to be compatible.
"process.env.NODE_ENV": JSON.stringify("production"),
},
},
},
},
plugins: [
@@ -58,4 +51,10 @@ export default defineConfig({
react: "window.React",
}),
],
define: {
// Use production mode for the build as it is tested against production builds of Element Web,
// this is required for React JSX versions to be compatible.
"process.env.NODE_ENV": "'production'",
"process": { env: { NODE_ENV: "production" } },
},
});