@nx/angular-rspack 21.5.0-beta.0 → 21.5.0-beta.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"angular-rspack-plugin.d.ts","sourceRoot":"","sources":["../../../src/lib/plugins/angular-rspack-plugin.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,KAAK,QAAQ,EAEb,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,WAAW,EAGhB,KAAK,oCAAoC,EAC1C,MAAM,WAAW,CAAC;AAUnB,qBAAa,mBAAoB,YAAW,oBAAoB;;gBAS5D,OAAO,EAAE,oCAAoC,EAC7C,WAAW,CAAC,EAAE,WAAW;IAuB3B,KAAK,CAAC,QAAQ,EAAE,QAAQ;YA8PV,gBAAgB;CAgC/B"}
1
+ {"version":3,"file":"angular-rspack-plugin.d.ts","sourceRoot":"","sources":["../../../src/lib/plugins/angular-rspack-plugin.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,KAAK,QAAQ,EAEb,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,WAAW,EAGhB,KAAK,oCAAoC,EAC1C,MAAM,WAAW,CAAC;AAUnB,qBAAa,mBAAoB,YAAW,oBAAoB;;gBAS5D,OAAO,EAAE,oCAAoC,EAC7C,WAAW,CAAC,EAAE,WAAW;IAuB3B,KAAK,CAAC,QAAQ,EAAE,QAAQ;YAgQV,gBAAgB;CAgC/B"}
@@ -113,8 +113,6 @@ class AngularRspackPlugin {
113
113
  name: PLUGIN_NAME,
114
114
  message: error.text || '',
115
115
  file: error.location?.file,
116
- loc: `${error.location?.line}:${error.location?.column}`,
117
- moduleIdentifier: error.location?.file,
118
116
  stack: error.text,
119
117
  });
120
118
  }
@@ -123,9 +121,7 @@ class AngularRspackPlugin {
123
121
  name: PLUGIN_NAME,
124
122
  message: warning.text || '',
125
123
  file: warning.location?.file,
126
- loc: `${warning.location?.line}:${warning.location?.column}`,
127
124
  stack: warning.text,
128
- moduleIdentifier: warning.location?.file,
129
125
  });
130
126
  }
131
127
  }
@@ -138,7 +134,11 @@ class AngularRspackPlugin {
138
134
  let budgetFailures;
139
135
  compiler.hooks.done.tap(PLUGIN_NAME, (statsValue) => {
140
136
  const stats = statsValue.toJson();
141
- if (budgets?.length) {
137
+ const isPlatformServer = Array.isArray(compiler.options.target)
138
+ ? compiler.options.target.some((target) => target === 'node' || target == 'async-node')
139
+ : compiler.options.target === 'node' ||
140
+ compiler.options.target === 'async-node';
141
+ if (budgets?.length && !isPlatformServer) {
142
142
  budgetFailures = [...(0, private_1.checkBudgets)(budgets, stats)];
143
143
  for (const { severity, message } of budgetFailures) {
144
144
  switch (severity) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular-rspack",
3
- "version": "21.5.0-beta.0",
3
+ "version": "21.5.0-beta.2",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -48,8 +48,8 @@
48
48
  "@ampproject/remapping": "2.3.0",
49
49
  "@babel/core": "7.26.10",
50
50
  "@discoveryjs/json-ext": "0.6.3",
51
- "@nx/angular-rspack-compiler": "21.5.0-beta.0",
52
- "@nx/devkit": "21.5.0-beta.0",
51
+ "@nx/angular-rspack-compiler": "21.5.0-beta.2",
52
+ "@nx/devkit": "21.5.0-beta.2",
53
53
  "ansi-colors": "4.1.3",
54
54
  "autoprefixer": "10.4.21",
55
55
  "deepmerge": "^4.3.1",
@@ -80,10 +80,10 @@
80
80
  "@angular/build": ">=19.0.0 <21.0.0",
81
81
  "@angular/localize": ">=19.0.0 <21.0.0",
82
82
  "@angular/platform-server": ">=19.0.0 <21.0.0",
83
- "zone.js": ">=0.14.0 <0.16.0",
84
83
  "@angular/ssr": ">=19.0.0 <21.0.0",
85
84
  "@rspack/core": ">=1.3.5 <2.0.0",
86
- "tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0"
85
+ "tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0",
86
+ "zone.js": ">=0.14.0 <0.16.0"
87
87
  },
88
88
  "peerDependenciesMeta": {
89
89
  "tailwindcss": {