@nx/angular-rspack 20.9.0 → 21.0.0

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.
Files changed (88) hide show
  1. package/dist/lib/config/config-utils/browser-config.d.ts.map +1 -1
  2. package/dist/lib/config/config-utils/browser-config.js +11 -0
  3. package/dist/lib/config/config-utils/common-config.d.ts.map +1 -1
  4. package/dist/lib/config/config-utils/common-config.js +32 -0
  5. package/dist/lib/config/config-utils/dev-server-config-utils.d.ts.map +1 -1
  6. package/dist/lib/config/config-utils/dev-server-config-utils.js +3 -1
  7. package/dist/lib/config/config-utils/get-stats-options.d.ts +3 -0
  8. package/dist/lib/config/config-utils/get-stats-options.d.ts.map +1 -0
  9. package/dist/lib/config/config-utils/get-stats-options.js +39 -0
  10. package/dist/lib/config/config-utils/optimization-config.d.ts.map +1 -1
  11. package/dist/lib/config/config-utils/optimization-config.js +3 -1
  12. package/dist/lib/config/config-utils/server-config.d.ts.map +1 -1
  13. package/dist/lib/config/config-utils/server-config.js +2 -1
  14. package/dist/lib/config/config-utils/style-config-utils.d.ts.map +1 -1
  15. package/dist/lib/config/config-utils/style-config-utils.js +8 -9
  16. package/dist/lib/config/config-utils/user-defined-config-helpers.d.ts +7 -14
  17. package/dist/lib/config/config-utils/user-defined-config-helpers.d.ts.map +1 -1
  18. package/dist/lib/models/angular-rspack-plugin-options.d.ts +100 -6
  19. package/dist/lib/models/angular-rspack-plugin-options.d.ts.map +1 -1
  20. package/dist/lib/models/augmented-compilation.d.ts +2 -2
  21. package/dist/lib/models/augmented-compilation.d.ts.map +1 -1
  22. package/dist/lib/models/normalize-options.d.ts +2 -2
  23. package/dist/lib/models/normalize-options.d.ts.map +1 -1
  24. package/dist/lib/models/normalize-options.js +63 -28
  25. package/dist/lib/plugins/angular-rspack-plugin.d.ts.map +1 -1
  26. package/dist/lib/plugins/angular-rspack-plugin.js +58 -12
  27. package/dist/lib/plugins/any-component-style-budget-checker-plugin.d.ts +19 -0
  28. package/dist/lib/plugins/any-component-style-budget-checker-plugin.d.ts.map +1 -0
  29. package/dist/lib/plugins/any-component-style-budget-checker-plugin.js +65 -0
  30. package/dist/lib/plugins/i18n-inline-plugin.d.ts.map +1 -1
  31. package/dist/lib/plugins/i18n-inline-plugin.js +5 -3
  32. package/dist/lib/plugins/loaders/angular-partial-transform.loader.d.ts.map +1 -1
  33. package/dist/lib/plugins/loaders/angular-partial-transform.loader.js +4 -1
  34. package/dist/lib/plugins/loaders/hmr-accept-loader.d.ts +11 -0
  35. package/dist/lib/plugins/loaders/hmr-accept-loader.d.ts.map +1 -0
  36. package/dist/lib/plugins/loaders/hmr-accept-loader.js +24 -0
  37. package/dist/lib/plugins/loaders/hmr-accept.d.ts +9 -0
  38. package/dist/lib/plugins/loaders/hmr-accept.d.ts.map +1 -0
  39. package/dist/lib/plugins/loaders/hmr-accept.js +183 -0
  40. package/dist/lib/plugins/ng-rspack.d.ts.map +1 -1
  41. package/dist/lib/plugins/ng-rspack.js +35 -15
  42. package/dist/lib/plugins/prerender-plugin.d.ts.map +1 -1
  43. package/dist/lib/plugins/prerender-plugin.js +75 -10
  44. package/dist/lib/plugins/progress-plugin.d.ts +12 -0
  45. package/dist/lib/plugins/progress-plugin.d.ts.map +1 -0
  46. package/dist/lib/plugins/progress-plugin.js +36 -0
  47. package/dist/lib/plugins/stats-json-plugin.d.ts +14 -0
  48. package/dist/lib/plugins/stats-json-plugin.d.ts.map +1 -0
  49. package/dist/lib/plugins/stats-json-plugin.js +70 -0
  50. package/dist/lib/plugins/suppress-js-for-css-chunks-plugin.d.ts +5 -0
  51. package/dist/lib/plugins/suppress-js-for-css-chunks-plugin.d.ts.map +1 -0
  52. package/dist/lib/plugins/suppress-js-for-css-chunks-plugin.js +34 -0
  53. package/dist/lib/plugins/tools/dev-tools-ignore-plugin.d.ts.map +1 -1
  54. package/dist/lib/plugins/tools/dev-tools-ignore-plugin.js +1 -1
  55. package/dist/lib/plugins/transfer-size-plugin.d.ts +12 -0
  56. package/dist/lib/plugins/transfer-size-plugin.d.ts.map +1 -0
  57. package/dist/lib/plugins/transfer-size-plugin.js +49 -0
  58. package/dist/lib/plugins/watch-file-logs-plugin.d.ts +12 -0
  59. package/dist/lib/plugins/watch-file-logs-plugin.d.ts.map +1 -0
  60. package/dist/lib/plugins/watch-file-logs-plugin.js +27 -0
  61. package/dist/lib/utils/async-chunks.d.ts +17 -0
  62. package/dist/lib/utils/async-chunks.d.ts.map +1 -0
  63. package/dist/lib/utils/async-chunks.js +44 -0
  64. package/dist/lib/utils/color.d.ts +11 -0
  65. package/dist/lib/utils/color.d.ts.map +1 -0
  66. package/dist/lib/utils/color.js +41 -0
  67. package/dist/lib/utils/index-file/get-index-input-file.d.ts +3 -0
  68. package/dist/lib/utils/index-file/get-index-input-file.d.ts.map +1 -0
  69. package/dist/lib/utils/index-file/get-index-input-file.js +9 -0
  70. package/dist/lib/utils/misc-helpers.d.ts +1 -0
  71. package/dist/lib/utils/misc-helpers.d.ts.map +1 -1
  72. package/dist/lib/utils/misc-helpers.js +4 -0
  73. package/dist/lib/utils/rspack-diagnostics.d.ts +3 -3
  74. package/dist/lib/utils/rspack-diagnostics.d.ts.map +1 -1
  75. package/dist/lib/utils/rspack-diagnostics.js +16 -4
  76. package/dist/lib/utils/spinner.d.ts +21 -0
  77. package/dist/lib/utils/spinner.d.ts.map +1 -0
  78. package/dist/lib/utils/spinner.js +53 -0
  79. package/dist/lib/utils/stats.d.ts +35 -0
  80. package/dist/lib/utils/stats.d.ts.map +1 -0
  81. package/dist/lib/utils/stats.js +312 -0
  82. package/dist/lib/utils/tty.d.ts +9 -0
  83. package/dist/lib/utils/tty.d.ts.map +1 -0
  84. package/dist/lib/utils/tty.js +22 -0
  85. package/package.json +6 -2
  86. package/dist/lib/models/unsupported-options.d.ts +0 -39
  87. package/dist/lib/models/unsupported-options.d.ts.map +0 -1
  88. package/dist/lib/models/unsupported-options.js +0 -22
@@ -0,0 +1,312 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.dev/license
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.normalizeExtraEntryPoints = normalizeExtraEntryPoints;
11
+ exports.statsWarningsToString = statsWarningsToString;
12
+ exports.statsErrorsToString = statsErrorsToString;
13
+ exports.statsHasErrors = statsHasErrors;
14
+ exports.statsHasWarnings = statsHasWarnings;
15
+ exports.createRspackLoggingCallback = createRspackLoggingCallback;
16
+ exports.generateBuildEventStats = generateBuildEventStats;
17
+ exports.rspackStatsLogger = rspackStatsLogger;
18
+ const tslib_1 = require("tslib");
19
+ const private_1 = require("@angular/build/private");
20
+ const node_assert_1 = tslib_1.__importDefault(require("node:assert"));
21
+ const path = tslib_1.__importStar(require("node:path"));
22
+ const normalize_options_1 = require("../models/normalize-options");
23
+ const color_1 = require("./color");
24
+ const async_chunks_1 = require("./async-chunks");
25
+ const get_stats_options_1 = require("../config/config-utils/get-stats-options");
26
+ function normalizeExtraEntryPoints(extraEntryPoints, defaultBundleName) {
27
+ return extraEntryPoints.map((entry) => {
28
+ if (typeof entry === 'string') {
29
+ return { input: entry, inject: true, bundleName: defaultBundleName };
30
+ }
31
+ const { inject = true, ...newEntry } = entry;
32
+ let bundleName;
33
+ if (entry.bundleName) {
34
+ bundleName = entry.bundleName;
35
+ }
36
+ else if (!inject) {
37
+ // Lazy entry points use the file name as bundle name.
38
+ bundleName = path.parse(entry.input).name;
39
+ }
40
+ else {
41
+ bundleName = defaultBundleName;
42
+ }
43
+ return { ...newEntry, inject, bundleName };
44
+ });
45
+ }
46
+ function getBuildDuration(rspackStats) {
47
+ (0, node_assert_1.default)(rspackStats.builtAt, 'buildAt cannot be undefined');
48
+ (0, node_assert_1.default)(rspackStats.time, 'time cannot be undefined');
49
+ return Date.now() - rspackStats.builtAt + rspackStats.time;
50
+ }
51
+ function generateBundleStats(info) {
52
+ const rawSize = typeof info.rawSize === 'number' ? info.rawSize : '-';
53
+ const estimatedTransferSize = typeof info.estimatedTransferSize === 'number'
54
+ ? info.estimatedTransferSize
55
+ : '-';
56
+ const files = info.files
57
+ ?.filter((f) => !f.endsWith('.map'))
58
+ .map((f) => path.basename(f))
59
+ .join(', ') ?? '';
60
+ const names = info.names?.length ? info.names.join(', ') : '-';
61
+ const initial = !!info.initial;
62
+ return {
63
+ initial,
64
+ stats: [files, names, rawSize, estimatedTransferSize],
65
+ };
66
+ }
67
+ // We use this cache because we can have multiple builders running in the same process,
68
+ // where each builder has different output path.
69
+ // Ideally, we should create the logging callback as a factory, but that would need a refactoring.
70
+ const runsCache = new Set();
71
+ function statsToString(stats, json, statsConfig, budgetFailures) {
72
+ if (!json.chunks?.length) {
73
+ return '';
74
+ }
75
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
76
+ const colors = statsConfig.colors;
77
+ const rs = (x) => (colors ? color_1.colors.reset(x) : x);
78
+ const w = (x) => (colors ? color_1.colors.bold.white(x) : x);
79
+ const changedChunksStats = [];
80
+ let unchangedChunkNumber = 0;
81
+ let hasEstimatedTransferSizes = false;
82
+ const isFirstRun = !runsCache.has(json.outputPath || '');
83
+ for (const chunk of json.chunks) {
84
+ // During first build we want to display unchanged chunks
85
+ // but unchanged cached chunks are always marked as not rendered.
86
+ if (!isFirstRun && !chunk.rendered) {
87
+ continue;
88
+ }
89
+ const assets = json.assets?.filter((asset) => chunk.files?.includes(asset.name));
90
+ let rawSize = 0;
91
+ let estimatedTransferSize;
92
+ if (assets) {
93
+ for (const asset of assets) {
94
+ if (asset.name.endsWith('.map')) {
95
+ continue;
96
+ }
97
+ rawSize += asset.size;
98
+ const assetInfo = stats.compilation.getAsset(asset.name)?.info;
99
+ if (assetInfo) {
100
+ if (typeof assetInfo.estimatedTransferSize === 'number') {
101
+ if (estimatedTransferSize === undefined) {
102
+ estimatedTransferSize = 0;
103
+ hasEstimatedTransferSizes = true;
104
+ }
105
+ estimatedTransferSize += assetInfo.estimatedTransferSize;
106
+ }
107
+ }
108
+ }
109
+ }
110
+ changedChunksStats.push(generateBundleStats({ ...chunk, rawSize, estimatedTransferSize }));
111
+ }
112
+ unchangedChunkNumber = json.chunks.length - changedChunksStats.length;
113
+ runsCache.add(json.outputPath || '');
114
+ const statsTable = (0, private_1.generateBuildStatsTable)(changedChunksStats, colors, unchangedChunkNumber === 0, hasEstimatedTransferSizes, budgetFailures);
115
+ // In some cases we do things outside of rspack context
116
+ // Such us index generation, service worker augmentation etc...
117
+ // This will correct the time and include these.
118
+ const time = getBuildDuration(json);
119
+ return rs(`\n${statsTable}\n\n` +
120
+ (unchangedChunkNumber > 0
121
+ ? `${unchangedChunkNumber} unchanged chunks\n\n`
122
+ : '') +
123
+ `Build at: ${w(new Date().toISOString())} - Hash: ${w(json.hash || '')} - Time: ${w('' + time)}ms`);
124
+ }
125
+ function statsWarningsToString(json, statsConfig) {
126
+ const colors = statsConfig.colors;
127
+ const c = (x) => (colors ? color_1.colors.reset.cyan(x) : x);
128
+ const y = (x) => (colors ? color_1.colors.reset.yellow(x) : x);
129
+ const yb = (x) => (colors ? color_1.colors.reset.yellowBright(x) : x);
130
+ const warnings = json.warnings ? [...json.warnings] : [];
131
+ if (json.children) {
132
+ warnings.push(...json.children
133
+ .map((c) => c.warnings ?? [])
134
+ .reduce((a, b) => [...a, ...b], []));
135
+ }
136
+ let output = '';
137
+ for (const warning of warnings) {
138
+ if (typeof warning === 'string') {
139
+ output += yb(`Warning: ${warning}\n\n`);
140
+ }
141
+ else {
142
+ let file = warning.file || warning.moduleName;
143
+ // Clean up warning paths
144
+ // Ex: ./src/app/styles.scss.rspack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js....
145
+ // to ./src/app/styles.scss.rspack
146
+ if (file && !statsConfig.errorDetails) {
147
+ const rpsackPathIndex = file.indexOf('.rspack[');
148
+ if (rpsackPathIndex !== -1) {
149
+ file = file.substring(0, rpsackPathIndex);
150
+ }
151
+ const rspackLoadersIndex = file.indexOf('!=!');
152
+ if (rspackLoadersIndex !== -1) {
153
+ file = file.substring(0, rspackLoadersIndex);
154
+ }
155
+ }
156
+ if (file) {
157
+ output += c(file);
158
+ if (warning.loc) {
159
+ output += ':' + yb(warning.loc);
160
+ }
161
+ output += ' - ';
162
+ }
163
+ if (!/^error/i.test(warning.message)) {
164
+ const errorIndex = warning.message.indexOf('Error: ');
165
+ warning.message = warning.message.substring(errorIndex + 7);
166
+ }
167
+ if (!/^warning/i.test(warning.message)) {
168
+ output += y('Warning: ');
169
+ }
170
+ output += `${warning.message}\n\n`;
171
+ }
172
+ }
173
+ return output ? '\n' + output : output;
174
+ }
175
+ function statsErrorsToString(json, statsConfig) {
176
+ const colors = statsConfig.colors;
177
+ const c = (x) => (colors ? color_1.colors.reset.cyan(x) : x);
178
+ const yb = (x) => (colors ? color_1.colors.reset.yellowBright(x) : x);
179
+ const r = (x) => (colors ? color_1.colors.reset.redBright(x) : x);
180
+ const errors = json.errors ? [...json.errors] : [];
181
+ if (json.children) {
182
+ errors.push(...json.children
183
+ .map((c) => c?.errors || [])
184
+ .reduce((a, b) => [...a, ...b], []));
185
+ }
186
+ let output = '';
187
+ for (const error of errors) {
188
+ if (typeof error === 'string') {
189
+ output += r(`Error: ${error}\n\n`);
190
+ }
191
+ else {
192
+ let file = error.file || error.moduleName;
193
+ // Clean up error paths
194
+ // Ex: ./src/app/styles.scss.rspack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js....
195
+ // to ./src/app/styles.scss.rspack
196
+ if (file && !statsConfig.errorDetails) {
197
+ const rspackPathIndex = file.indexOf('.rspack[');
198
+ if (rspackPathIndex !== -1) {
199
+ file = file.substring(0, rspackPathIndex);
200
+ }
201
+ const rspackLoadersIndex = file.indexOf('!=!');
202
+ if (rspackLoadersIndex !== -1) {
203
+ file = file.substring(0, rspackLoadersIndex);
204
+ }
205
+ }
206
+ if (file) {
207
+ output += c(file);
208
+ if (error.loc) {
209
+ output += ':' + yb(error.loc);
210
+ }
211
+ output += ' - ';
212
+ }
213
+ // In most cases rspack will add stack traces to error messages.
214
+ // This below cleans up the error from stacks.
215
+ // See: https://github.com/webpack/webpack/issues/15980
216
+ const index = error.message.search(/[\n\s]+at /);
217
+ const message = statsConfig.errorStack || index === -1
218
+ ? error.message
219
+ : error.message.substring(0, index);
220
+ if (!/^error/i.test(message)) {
221
+ output += r('Error: ');
222
+ }
223
+ output += `${message}\n\n`;
224
+ }
225
+ }
226
+ return output ? '\n' + output : output;
227
+ }
228
+ function statsHasErrors(json) {
229
+ return !!(json.errors?.length || json.children?.some((c) => c.errors?.length));
230
+ }
231
+ function statsHasWarnings(json) {
232
+ return !!(json.warnings?.length || json.children?.some((c) => c.warnings?.length));
233
+ }
234
+ function createRspackLoggingCallback(options) {
235
+ const { verbose = false, scripts = [], styles = [] } = options;
236
+ const extraEntryPoints = [
237
+ ...normalizeExtraEntryPoints(styles, 'styles'),
238
+ ...normalizeExtraEntryPoints(scripts, 'scripts'),
239
+ ];
240
+ return (stats, config) => {
241
+ if (verbose && config.stats !== false) {
242
+ const statsOptions = config.stats === true ? undefined : config.stats;
243
+ console.info(stats.toString(statsOptions));
244
+ }
245
+ const rawStats = stats.toJson((0, get_stats_options_1.getStatsOptions)(false));
246
+ const rspackStats = {
247
+ ...rawStats,
248
+ chunks: (0, async_chunks_1.markAsyncChunksNonInitial)(rawStats, extraEntryPoints),
249
+ };
250
+ rspackStatsLogger(rspackStats, config);
251
+ };
252
+ }
253
+ function generateBuildEventStats(rspackStats, options) {
254
+ const { chunks = [], assets = [] } = rspackStats;
255
+ let jsSizeInBytes = 0;
256
+ let cssSizeInBytes = 0;
257
+ let initialChunksCount = 0;
258
+ let ngComponentCount = 0;
259
+ let changedChunksCount = 0;
260
+ const allChunksCount = chunks.length;
261
+ const isFirstRun = !runsCache.has(rspackStats.outputPath || '');
262
+ const chunkFiles = new Set();
263
+ for (const chunk of chunks) {
264
+ if (!isFirstRun && chunk.rendered) {
265
+ changedChunksCount++;
266
+ }
267
+ if (chunk.initial) {
268
+ initialChunksCount++;
269
+ }
270
+ for (const file of chunk.files ?? []) {
271
+ chunkFiles.add(file);
272
+ }
273
+ }
274
+ for (const asset of assets) {
275
+ if (asset.name.endsWith('.map') || !chunkFiles.has(asset.name)) {
276
+ continue;
277
+ }
278
+ if (asset.name.endsWith('.js')) {
279
+ jsSizeInBytes += asset.size;
280
+ ngComponentCount += asset.info.ngComponentCount ?? 0;
281
+ }
282
+ else if (asset.name.endsWith('.css')) {
283
+ cssSizeInBytes += asset.size;
284
+ }
285
+ }
286
+ return {
287
+ optimization: (0, normalize_options_1.normalizeOptimization)(options.optimization).scripts,
288
+ aot: options.aot,
289
+ allChunksCount,
290
+ lazyChunksCount: allChunksCount - initialChunksCount,
291
+ initialChunksCount,
292
+ changedChunksCount,
293
+ durationInMs: getBuildDuration(rspackStats),
294
+ cssSizeInBytes,
295
+ jsSizeInBytes,
296
+ ngComponentCount,
297
+ };
298
+ }
299
+ function rspackStatsLogger(stats, statOptions, budgetFailures) {
300
+ const json = stats.toJson();
301
+ console.log(statsToString(stats, json, statOptions, budgetFailures));
302
+ if (typeof stats !== 'object') {
303
+ throw new Error('Invalid Rspack stats configuration.');
304
+ }
305
+ if (statsHasWarnings(json)) {
306
+ console.warn(statsWarningsToString(json, statOptions));
307
+ }
308
+ if (statsHasErrors(json)) {
309
+ console.log('Stats has errors');
310
+ console.error(statsErrorsToString(json, statOptions));
311
+ }
312
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ export declare function isTTY(): boolean;
9
+ //# sourceMappingURL=tty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tty.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/tty.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AASH,wBAAgB,KAAK,IAAI,OAAO,CAQ/B"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.dev/license
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.isTTY = isTTY;
11
+ function _isTruthy(value) {
12
+ // Returns true if value is a string that is anything but 0 or false.
13
+ return (value !== undefined && value !== '0' && value.toUpperCase() !== 'FALSE');
14
+ }
15
+ function isTTY() {
16
+ // If we force TTY, we always return true.
17
+ const force = process.env['NG_FORCE_TTY'];
18
+ if (force !== undefined) {
19
+ return _isTruthy(force);
20
+ }
21
+ return !!process.stdout.isTTY && !_isTruthy(process.env['CI']);
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular-rspack",
3
- "version": "20.9.0",
3
+ "version": "21.0.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -50,7 +50,9 @@
50
50
  "dependencies": {
51
51
  "@ampproject/remapping": "2.3.0",
52
52
  "@babel/core": "7.26.10",
53
+ "@discoveryjs/json-ext": "0.6.3",
53
54
  "@nx/devkit": "21.0.0",
55
+ "ansi-colors": "4.1.3",
54
56
  "autoprefixer": "10.4.21",
55
57
  "deepmerge": "^4.3.1",
56
58
  "express": "4.21.1",
@@ -59,6 +61,8 @@
59
61
  "less-loader": "^12.2.0",
60
62
  "license-webpack-plugin": "^4.0.2",
61
63
  "loader-utils": "3.3.1",
64
+ "open": "10.1.0",
65
+ "ora": "5.4.1",
62
66
  "parse5-html-rewriting-stream": "7.0.0",
63
67
  "piscina": "4.9.2",
64
68
  "postcss": "8.5.3",
@@ -70,7 +74,7 @@
70
74
  "tslib": "^2.3.0",
71
75
  "webpack-merge": "^6.0.1",
72
76
  "ws": "^8.18.0",
73
- "@nx/angular-rspack-compiler": "20.9.0"
77
+ "@nx/angular-rspack-compiler": "21.0.0"
74
78
  },
75
79
  "devDependencies": {
76
80
  "@code-pushup/models": "^0.63.0",
@@ -1,39 +0,0 @@
1
- export type BudgetEntry = {
2
- type: 'all' | 'allScript' | 'any' | 'anyScript' | 'anyComponentStyle' | 'bundle' | 'initial';
3
- name?: string;
4
- baseline?: string;
5
- maximumWarning?: string;
6
- maximumError?: string;
7
- minimumWarning?: string;
8
- minimumError?: string;
9
- warning?: string;
10
- error?: string;
11
- };
12
- export interface DevServerUnsupportedOptions {
13
- open?: boolean;
14
- hmr?: boolean;
15
- inspect?: string | boolean;
16
- prebundle?: boolean | {
17
- exclude: string[];
18
- };
19
- }
20
- export interface PluginUnsupportedOptions {
21
- security?: {
22
- autoCsp?: boolean | {
23
- unsafeEval?: boolean;
24
- };
25
- };
26
- clearScreen?: boolean;
27
- verbose?: boolean;
28
- progress?: boolean;
29
- watch?: boolean;
30
- poll?: number;
31
- statsJson?: boolean;
32
- budgets?: BudgetEntry[];
33
- allowedCommonJsDependencies?: string[];
34
- appShell?: boolean;
35
- outputMode?: 'static' | 'server';
36
- }
37
- export declare const TOP_LEVEL_OPTIONS_PENDING_SUPPORT: string[];
38
- export declare const DEV_SERVER_OPTIONS_PENDING_SUPPORT: string[];
39
- //# sourceMappingURL=unsupported-options.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unsupported-options.d.ts","sourceRoot":"","sources":["../../../src/lib/models/unsupported-options.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EACA,KAAK,GACL,WAAW,GACX,KAAK,GACL,WAAW,GACX,mBAAmB,GACnB,QAAQ,GACR,SAAS,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,WAAW,2BAA2B;IAC1C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,SAAS,CAAC,EACN,OAAO,GACP;QACE,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACP;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EACJ,OAAO,GACP;YACE,UAAU,CAAC,EAAE,OAAO,CAAC;SACtB,CAAC;KACP,CAAC;IACF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,2BAA2B,CAAC,EAAE,MAAM,EAAE,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAClC;AAED,eAAO,MAAM,iCAAiC,UAY7C,CAAC;AAEF,eAAO,MAAM,kCAAkC,UAK9C,CAAC"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEV_SERVER_OPTIONS_PENDING_SUPPORT = exports.TOP_LEVEL_OPTIONS_PENDING_SUPPORT = void 0;
4
- exports.TOP_LEVEL_OPTIONS_PENDING_SUPPORT = [
5
- 'security',
6
- 'clearScreen',
7
- 'verbose',
8
- 'progress',
9
- 'watch',
10
- 'poll',
11
- 'statsJson',
12
- 'budgets',
13
- 'allowedCommonJsDependencies',
14
- 'appShell',
15
- 'outputMode',
16
- ];
17
- exports.DEV_SERVER_OPTIONS_PENDING_SUPPORT = [
18
- 'open',
19
- 'hmr',
20
- 'inspect',
21
- 'prebundle',
22
- ];