@nx/webpack 22.3.3 → 22.4.0-canary.20251219-137ab45

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.3",
3
+ "version": "22.4.0-canary.20251219-137ab45",
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.3.3",
68
- "@nx/js": "22.3.3"
67
+ "@nx/devkit": "22.4.0-canary.20251219-137ab45",
68
+ "@nx/js": "22.4.0-canary.20251219-137ab45"
69
69
  },
70
70
  "devDependencies": {
71
- "nx": "22.3.3"
71
+ "nx": "22.4.0-canary.20251219-137ab45"
72
72
  },
73
73
  "publishConfig": {
74
74
  "access": "public"
@@ -1 +1 @@
1
- {"version":3,"file":"webpack-nx-build-coordination-plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/webpack/src/plugins/webpack-nx-build-coordination-plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKxC,KAAK,aAAa,GAAG;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,qBAAa,gCAAgC;IAWzC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAV3B,OAAO,CAAC,gBAAgB,CAAiD;IACzE,OAAO,CAAC,eAAe,CAAwC;gBAEnD,QAAQ,EAAE,MAAM;IAC5B;;OAEG;gBACS,QAAQ,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,OAAO;gBAC5C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAyBrD,KAAK,CAAC,QAAQ,EAAE,QAAQ;IAelB,0BAA0B;IAQ1B,oBAAoB;IA0B1B,OAAO,CAAC,iBAAiB;CA2B1B"}
1
+ {"version":3,"file":"webpack-nx-build-coordination-plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/webpack/src/plugins/webpack-nx-build-coordination-plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKxC,KAAK,aAAa,GAAG;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,qBAAa,gCAAgC;IAWzC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAV3B,OAAO,CAAC,gBAAgB,CAAiD;IACzE,OAAO,CAAC,eAAe,CAAwC;gBAEnD,QAAQ,EAAE,MAAM;IAC5B;;OAEG;gBACS,QAAQ,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,OAAO;gBAC5C,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAyBrD,KAAK,CAAC,QAAQ,EAAE,QAAQ;IAelB,0BAA0B;IAQ1B,oBAAoB;IA0B1B,OAAO,CAAC,iBAAiB;CAiC1B"}
@@ -74,16 +74,25 @@ class WebpackNxBuildCoordinationPlugin {
74
74
  return client_1.daemonClient.registerFileWatcher({
75
75
  watchProjects: 'all',
76
76
  }, (err, { changedProjects, changedFiles }) => {
77
- if (err === 'closed') {
77
+ if (err === 'reconnecting') {
78
+ // Silent - daemon restarts automatically on lockfile changes
79
+ return;
80
+ }
81
+ else if (err === 'reconnected') {
82
+ // Silent - reconnection succeeded
83
+ return;
84
+ }
85
+ else if (err === 'closed') {
78
86
  output_1.output.error({
79
- title: 'Watch connection closed',
80
- bodyLines: [
81
- 'The daemon has closed the connection to this watch process.',
82
- 'Please restart your watch command.',
83
- ],
87
+ title: 'Failed to reconnect to daemon after multiple attempts',
84
88
  });
85
89
  process.exit(1);
86
90
  }
91
+ else if (err) {
92
+ output_1.output.error({
93
+ title: `Watch error: ${err?.message ?? 'Unknown'}`,
94
+ });
95
+ }
87
96
  if (this.buildCmdProcess) {
88
97
  this.buildCmdProcess.kill(2);
89
98
  this.buildCmdProcess = null;