Iterate NODE_ENV
This commit is contained in:
@@ -39,13 +39,6 @@ export default defineConfig({
|
|||||||
react: "window.React",
|
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: [
|
plugins: [
|
||||||
@@ -60,4 +53,10 @@ export default defineConfig({
|
|||||||
react: "window.React",
|
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" } },
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -37,13 +37,6 @@ export default defineConfig({
|
|||||||
react: "window.React",
|
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,
|
minify: false,
|
||||||
},
|
},
|
||||||
@@ -57,4 +50,10 @@ export default defineConfig({
|
|||||||
react: "window.React",
|
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",
|
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: [
|
plugins: [
|
||||||
@@ -58,4 +51,10 @@ export default defineConfig({
|
|||||||
react: "window.React",
|
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",
|
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: [
|
plugins: [
|
||||||
@@ -60,4 +53,10 @@ export default defineConfig({
|
|||||||
react: "window.React",
|
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" } },
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user