@nx/webpack 22.5.1 → 22.5.3

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2017-2025 Narwhal Technologies Inc.
3
+ Copyright (c) 2017-2026 Narwhal Technologies Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/webpack",
3
- "version": "22.5.1",
3
+ "version": "22.5.3",
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.5.1",
68
- "@nx/js": "22.5.1"
67
+ "@nx/devkit": "22.5.3",
68
+ "@nx/js": "22.5.3"
69
69
  },
70
70
  "devDependencies": {
71
- "nx": "22.5.1"
71
+ "nx": "22.5.3"
72
72
  },
73
73
  "publishConfig": {
74
74
  "access": "public"
@@ -1,4 +1,6 @@
1
1
  export declare function getClientEnvironment(mode?: string): {
2
- stringified: Record<string, string>;
2
+ stringified: {
3
+ 'process.env': {};
4
+ };
3
5
  };
4
6
  //# sourceMappingURL=get-client-environment.d.ts.map
@@ -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;;EAgCjD"}
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;;;;EAqCjD"}
@@ -24,6 +24,11 @@ function getClientEnvironment(mode) {
24
24
  },
25
25
  // Provide a fallback for process.env itself to handle cases where code
26
26
  // accesses process.env directly (e.g., in Cypress component testing)
27
- { 'process.env': '{}' });
27
+ {
28
+ 'process.env': Object.keys(raw).reduce((env, key) => {
29
+ env[key] = JSON.stringify(raw[key]);
30
+ return env;
31
+ }, {}),
32
+ });
28
33
  return { stringified };
29
34
  }