@nx/webpack 22.2.1 → 22.3.0-canary.20251211-205daee
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/webpack",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.3.0-canary.20251211-205daee",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Webpack contains executors and generators that support building applications using Webpack.",
|
|
6
6
|
"repository": {
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"webpack-dev-server": "^5.2.1",
|
|
65
65
|
"webpack-node-externals": "^3.0.0",
|
|
66
66
|
"webpack-subresource-integrity": "^5.1.0",
|
|
67
|
-
"@nx/devkit": "22.
|
|
68
|
-
"@nx/js": "22.
|
|
67
|
+
"@nx/devkit": "22.3.0-canary.20251211-205daee",
|
|
68
|
+
"@nx/js": "22.3.0-canary.20251211-205daee"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"nx": "22.
|
|
71
|
+
"nx": "22.3.0-canary.20251211-205daee"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-client-environment.d.ts","sourceRoot":"","sources":["../../../../../packages/webpack/src/utils/get-client-environment.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,CAAC,IAAI,CAAC,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"get-client-environment.d.ts","sourceRoot":"","sources":["../../../../../packages/webpack/src/utils/get-client-environment.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,CAAC,IAAI,CAAC,EAAE,MAAM;;EAgCjD"}
|
|
@@ -18,11 +18,12 @@ function getClientEnvironment(mode) {
|
|
|
18
18
|
NODE_ENV: process.env.NODE_ENV,
|
|
19
19
|
});
|
|
20
20
|
// Stringify all values so we can feed into webpack DefinePlugin
|
|
21
|
-
const stringified = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
const stringified = Object.keys(raw).reduce((env, key) => {
|
|
22
|
+
env[`process.env.${key}`] = JSON.stringify(raw[key]);
|
|
23
|
+
return env;
|
|
24
|
+
},
|
|
25
|
+
// Provide a fallback for process.env itself to handle cases where code
|
|
26
|
+
// accesses process.env directly (e.g., in Cypress component testing)
|
|
27
|
+
{ 'process.env': '{}' });
|
|
27
28
|
return { stringified };
|
|
28
29
|
}
|