@angular-devkit/build-angular 17.3.2 → 17.3.4

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,15 +1,15 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "17.3.2",
3
+ "version": "17.3.4",
4
4
  "description": "Angular Webpack Build Facade",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
7
7
  "builders": "builders.json",
8
8
  "dependencies": {
9
9
  "@ampproject/remapping": "2.3.0",
10
- "@angular-devkit/architect": "0.1703.2",
11
- "@angular-devkit/build-webpack": "0.1703.2",
12
- "@angular-devkit/core": "17.3.2",
10
+ "@angular-devkit/architect": "0.1703.4",
11
+ "@angular-devkit/build-webpack": "0.1703.4",
12
+ "@angular-devkit/core": "17.3.4",
13
13
  "@babel/core": "7.24.0",
14
14
  "@babel/generator": "7.23.6",
15
15
  "@babel/helper-annotate-as-pure": "7.22.5",
@@ -20,7 +20,7 @@
20
20
  "@babel/preset-env": "7.24.0",
21
21
  "@babel/runtime": "7.24.0",
22
22
  "@discoveryjs/json-ext": "0.5.7",
23
- "@ngtools/webpack": "17.3.2",
23
+ "@ngtools/webpack": "17.3.4",
24
24
  "@vitejs/plugin-basic-ssl": "1.1.0",
25
25
  "ansi-colors": "4.1.3",
26
26
  "autoprefixer": "10.4.18",
@@ -61,8 +61,8 @@
61
61
  "terser": "5.29.1",
62
62
  "tree-kill": "1.2.2",
63
63
  "tslib": "2.6.2",
64
- "undici": "6.7.1",
65
- "vite": "5.1.5",
64
+ "undici": "6.11.1",
65
+ "vite": "5.1.7",
66
66
  "watchpack": "2.4.0",
67
67
  "webpack": "5.90.3",
68
68
  "webpack-dev-middleware": "6.1.2",
@@ -156,7 +156,7 @@ exports.log = log;
156
156
  function startNodeServer(serverOutput, port, logger, inspectMode = false) {
157
157
  const outputPath = serverOutput.outputPath;
158
158
  const path = (0, path_1.join)(outputPath, 'main.js');
159
- const env = { ...process.env, SSR_PORT: '' + port, PORT: '' + port };
159
+ const env = { ...process.env, PORT: '' + port };
160
160
  const args = ['--enable-source-maps', `"${path}"`];
161
161
  if (inspectMode) {
162
162
  args.unshift('--inspect-brk');
@@ -341,16 +341,16 @@ exports.createCompilerPlugin = createCompilerPlugin;
341
341
  function createCompilerOptionsTransformer(setupWarnings, pluginOptions, preserveSymlinks) {
342
342
  return (compilerOptions) => {
343
343
  // target of 9 is ES2022 (using the number avoids an expensive import of typescript just for an enum)
344
- if (compilerOptions.target === undefined || compilerOptions.target < 9) {
344
+ if (compilerOptions.target === undefined || compilerOptions.target < 9 /** ES2022 */) {
345
345
  // If 'useDefineForClassFields' is already defined in the users project leave the value as is.
346
346
  // Otherwise fallback to false due to https://github.com/microsoft/TypeScript/issues/45995
347
347
  // which breaks the deprecated `@Effects` NGRX decorator and potentially other existing code as well.
348
- compilerOptions.target = 9;
348
+ compilerOptions.target = 9 /** ES2022 */;
349
349
  compilerOptions.useDefineForClassFields ??= false;
350
350
  // Only add the warning on the initial build
351
351
  setupWarnings?.push({
352
- text: 'TypeScript compiler options "target" and "useDefineForClassFields" are set to "ES2022" and ' +
353
- '"false" respectively by the Angular CLI.',
352
+ text: `TypeScript compiler options 'target' and 'useDefineForClassFields' are set to 'ES2022' and ` +
353
+ `'false' respectively by the Angular CLI.`,
354
354
  location: { file: pluginOptions.tsconfig },
355
355
  notes: [
356
356
  {
@@ -377,6 +377,14 @@ function createCompilerOptionsTransformer(setupWarnings, pluginOptions, preserve
377
377
  else {
378
378
  compilerOptions.incremental = false;
379
379
  }
380
+ if (compilerOptions.module === undefined || compilerOptions.module < 5 /** ES2015 */) {
381
+ compilerOptions.module = 7; /** ES2022 */
382
+ setupWarnings?.push({
383
+ text: `TypeScript compiler options 'module' values 'CommonJS', 'UMD', 'System' and 'AMD' are not supported.`,
384
+ location: null,
385
+ notes: [{ text: `The 'module' option will be set to 'ES2022' instead.` }],
386
+ });
387
+ }
380
388
  return {
381
389
  ...compilerOptions,
382
390
  noEmitOnError: false,