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
+6 -7
View File
@@ -39,13 +39,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: [
@@ -60,4 +53,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" } },
},
});
+6 -7
View File
@@ -37,13 +37,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"),
},
},
},
minify: false,
},
@@ -57,4 +50,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" } },
},
});
@@ -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" } },
},
});
@@ -39,13 +39,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: [
@@ -60,4 +53,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" } },
},
});