@angular-devkit/build-angular 18.1.0-next.0 → 18.1.0-next.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.
Files changed (217) hide show
  1. package/README.md +14 -14
  2. package/package.json +38 -30
  3. package/plugins/karma.d.ts +1 -1
  4. package/plugins/karma.js +1 -1
  5. package/src/babel-bazel.d.ts +1 -1
  6. package/src/builders/app-shell/index.d.ts +1 -1
  7. package/src/builders/app-shell/index.js +1 -1
  8. package/src/builders/app-shell/render-worker.d.ts +1 -1
  9. package/src/builders/app-shell/render-worker.js +1 -1
  10. package/src/builders/browser/index.d.ts +1 -1
  11. package/src/builders/browser/index.js +3 -3
  12. package/src/builders/browser-esbuild/builder-status-warnings.d.ts +1 -1
  13. package/src/builders/browser-esbuild/builder-status-warnings.js +2 -3
  14. package/src/builders/browser-esbuild/index.d.ts +1 -1
  15. package/src/builders/browser-esbuild/index.js +2 -3
  16. package/src/builders/dev-server/builder.d.ts +1 -2
  17. package/src/builders/dev-server/builder.js +3 -4
  18. package/src/builders/dev-server/index.d.ts +1 -1
  19. package/src/builders/dev-server/index.js +1 -1
  20. package/src/builders/dev-server/options.d.ts +5 -1
  21. package/src/builders/dev-server/options.js +27 -3
  22. package/src/builders/dev-server/schema.d.ts +10 -0
  23. package/src/builders/dev-server/schema.json +11 -0
  24. package/src/builders/dev-server/webpack-server.d.ts +1 -1
  25. package/src/builders/dev-server/webpack-server.js +4 -4
  26. package/src/builders/extract-i18n/application-extraction.d.ts +1 -1
  27. package/src/builders/extract-i18n/application-extraction.js +2 -3
  28. package/src/builders/extract-i18n/builder.d.ts +1 -1
  29. package/src/builders/extract-i18n/builder.js +2 -3
  30. package/src/builders/extract-i18n/empty-loader.d.ts +1 -1
  31. package/src/builders/extract-i18n/empty-loader.js +2 -2
  32. package/src/builders/extract-i18n/index.d.ts +1 -1
  33. package/src/builders/extract-i18n/index.js +1 -1
  34. package/src/builders/extract-i18n/ivy-extract-loader.d.ts +1 -1
  35. package/src/builders/extract-i18n/ivy-extract-loader.js +2 -2
  36. package/src/builders/extract-i18n/options.d.ts +1 -1
  37. package/src/builders/extract-i18n/options.js +2 -3
  38. package/src/builders/extract-i18n/webpack-extraction.d.ts +1 -1
  39. package/src/builders/extract-i18n/webpack-extraction.js +2 -3
  40. package/src/builders/jest/index.d.ts +1 -1
  41. package/src/builders/jest/index.js +1 -1
  42. package/src/builders/jest/init-test-bed.mjs +5 -2
  43. package/src/builders/jest/jest-global.mjs +2 -2
  44. package/src/builders/jest/jest.config.mjs +1 -1
  45. package/src/builders/jest/options.d.ts +1 -1
  46. package/src/builders/jest/options.js +2 -3
  47. package/src/builders/karma/find-tests-plugin.d.ts +1 -1
  48. package/src/builders/karma/find-tests-plugin.js +1 -1
  49. package/src/builders/karma/index.d.ts +1 -1
  50. package/src/builders/karma/index.js +2 -3
  51. package/src/builders/ng-packagr/index.d.ts +1 -1
  52. package/src/builders/ng-packagr/index.js +2 -3
  53. package/src/builders/prerender/index.d.ts +1 -1
  54. package/src/builders/prerender/index.js +2 -3
  55. package/src/builders/prerender/render-worker.d.ts +1 -1
  56. package/src/builders/prerender/render-worker.js +1 -1
  57. package/src/builders/prerender/routes-extractor-worker.d.ts +1 -1
  58. package/src/builders/prerender/routes-extractor-worker.js +1 -1
  59. package/src/builders/protractor/index.d.ts +1 -1
  60. package/src/builders/protractor/index.js +2 -3
  61. package/src/builders/server/index.d.ts +1 -1
  62. package/src/builders/server/index.js +2 -3
  63. package/src/builders/server/platform-server-exports-loader.d.ts +1 -1
  64. package/src/builders/server/platform-server-exports-loader.js +2 -2
  65. package/src/builders/ssr-dev-server/index.d.ts +1 -1
  66. package/src/builders/ssr-dev-server/index.js +3 -4
  67. package/src/builders/ssr-dev-server/utils.d.ts +1 -2
  68. package/src/builders/ssr-dev-server/utils.js +4 -5
  69. package/src/builders/web-test-runner/builder-status-warnings.d.ts +1 -1
  70. package/src/builders/web-test-runner/builder-status-warnings.js +2 -3
  71. package/src/builders/web-test-runner/index.d.ts +1 -1
  72. package/src/builders/web-test-runner/index.js +1 -1
  73. package/src/builders/web-test-runner/jasmine_runner.js +1 -1
  74. package/src/builders/web-test-runner/options.d.ts +1 -1
  75. package/src/builders/web-test-runner/options.js +2 -3
  76. package/src/index.d.ts +1 -1
  77. package/src/index.js +1 -1
  78. package/src/tools/babel/babel-loader.d.ts +1 -1
  79. package/src/tools/babel/presets/application.d.ts +1 -1
  80. package/src/tools/babel/presets/application.js +3 -4
  81. package/src/tools/babel/webpack-loader.d.ts +1 -1
  82. package/src/tools/babel/webpack-loader.js +1 -1
  83. package/src/tools/webpack/configs/common.d.ts +1 -1
  84. package/src/tools/webpack/configs/common.js +2 -3
  85. package/src/tools/webpack/configs/dev-server.d.ts +1 -1
  86. package/src/tools/webpack/configs/dev-server.js +3 -4
  87. package/src/tools/webpack/configs/index.d.ts +1 -1
  88. package/src/tools/webpack/configs/index.js +1 -1
  89. package/src/tools/webpack/configs/styles.d.ts +1 -1
  90. package/src/tools/webpack/configs/styles.js +2 -3
  91. package/src/tools/webpack/plugins/any-component-style-budget-checker.d.ts +1 -1
  92. package/src/tools/webpack/plugins/any-component-style-budget-checker.js +1 -1
  93. package/src/tools/webpack/plugins/builder-watch-plugin.d.ts +1 -1
  94. package/src/tools/webpack/plugins/builder-watch-plugin.js +1 -1
  95. package/src/tools/webpack/plugins/common-js-usage-warn-plugin.d.ts +1 -1
  96. package/src/tools/webpack/plugins/common-js-usage-warn-plugin.js +1 -1
  97. package/src/tools/webpack/plugins/css-optimizer-plugin.d.ts +1 -1
  98. package/src/tools/webpack/plugins/css-optimizer-plugin.js +1 -1
  99. package/src/tools/webpack/plugins/dedupe-module-resolve-plugin.d.ts +1 -1
  100. package/src/tools/webpack/plugins/dedupe-module-resolve-plugin.js +1 -1
  101. package/src/tools/webpack/plugins/devtools-ignore-plugin.d.ts +1 -1
  102. package/src/tools/webpack/plugins/devtools-ignore-plugin.js +1 -1
  103. package/src/tools/webpack/plugins/esbuild-executor.d.ts +1 -1
  104. package/src/tools/webpack/plugins/esbuild-executor.js +1 -1
  105. package/src/tools/webpack/plugins/hmr/hmr-accept.d.ts +1 -1
  106. package/src/tools/webpack/plugins/hmr/hmr-accept.js +2 -2
  107. package/src/tools/webpack/plugins/hmr/hmr-loader.d.ts +1 -1
  108. package/src/tools/webpack/plugins/hmr/hmr-loader.js +2 -2
  109. package/src/tools/webpack/plugins/index-html-webpack-plugin.d.ts +1 -1
  110. package/src/tools/webpack/plugins/index-html-webpack-plugin.js +1 -1
  111. package/src/tools/webpack/plugins/index.d.ts +1 -1
  112. package/src/tools/webpack/plugins/index.js +1 -1
  113. package/src/tools/webpack/plugins/javascript-optimizer-plugin.d.ts +1 -1
  114. package/src/tools/webpack/plugins/javascript-optimizer-plugin.js +1 -1
  115. package/src/tools/webpack/plugins/javascript-optimizer-worker.d.ts +1 -1
  116. package/src/tools/webpack/plugins/javascript-optimizer-worker.js +2 -2
  117. package/src/tools/webpack/plugins/json-stats-plugin.d.ts +1 -1
  118. package/src/tools/webpack/plugins/json-stats-plugin.js +1 -1
  119. package/src/tools/webpack/plugins/karma/karma.d.ts +1 -1
  120. package/src/tools/webpack/plugins/karma/karma.js +1 -1
  121. package/src/tools/webpack/plugins/named-chunks-plugin.d.ts +1 -1
  122. package/src/tools/webpack/plugins/named-chunks-plugin.js +1 -1
  123. package/src/tools/webpack/plugins/occurrences-plugin.d.ts +1 -1
  124. package/src/tools/webpack/plugins/occurrences-plugin.js +1 -1
  125. package/src/tools/webpack/plugins/postcss-cli-resources.d.ts +1 -1
  126. package/src/tools/webpack/plugins/postcss-cli-resources.js +2 -2
  127. package/src/tools/webpack/plugins/progress-plugin.d.ts +1 -1
  128. package/src/tools/webpack/plugins/progress-plugin.js +1 -1
  129. package/src/tools/webpack/plugins/remove-hash-plugin.d.ts +1 -1
  130. package/src/tools/webpack/plugins/remove-hash-plugin.js +1 -1
  131. package/src/tools/webpack/plugins/scripts-webpack-plugin.d.ts +1 -1
  132. package/src/tools/webpack/plugins/scripts-webpack-plugin.js +1 -1
  133. package/src/tools/webpack/plugins/service-worker-plugin.d.ts +1 -1
  134. package/src/tools/webpack/plugins/service-worker-plugin.js +1 -1
  135. package/src/tools/webpack/plugins/styles-webpack-plugin.d.ts +1 -1
  136. package/src/tools/webpack/plugins/styles-webpack-plugin.js +1 -1
  137. package/src/tools/webpack/plugins/suppress-entry-chunks-webpack-plugin.d.ts +1 -1
  138. package/src/tools/webpack/plugins/suppress-entry-chunks-webpack-plugin.js +1 -1
  139. package/src/tools/webpack/plugins/transfer-size-plugin.d.ts +1 -1
  140. package/src/tools/webpack/plugins/transfer-size-plugin.js +1 -1
  141. package/src/tools/webpack/plugins/typescript.d.ts +1 -1
  142. package/src/tools/webpack/plugins/typescript.js +2 -3
  143. package/src/tools/webpack/plugins/watch-files-logs-plugin.d.ts +1 -1
  144. package/src/tools/webpack/plugins/watch-files-logs-plugin.js +1 -1
  145. package/src/tools/webpack/utils/async-chunks.d.ts +1 -1
  146. package/src/tools/webpack/utils/async-chunks.js +2 -3
  147. package/src/tools/webpack/utils/helpers.d.ts +1 -1
  148. package/src/tools/webpack/utils/helpers.js +11 -12
  149. package/src/tools/webpack/utils/stats.d.ts +1 -1
  150. package/src/tools/webpack/utils/stats.js +8 -9
  151. package/src/transforms.d.ts +1 -1
  152. package/src/transforms.js +1 -1
  153. package/src/utils/action-executor.d.ts +1 -1
  154. package/src/utils/action-executor.js +1 -1
  155. package/src/utils/build-options.d.ts +1 -1
  156. package/src/utils/build-options.js +1 -1
  157. package/src/utils/bundle-inline-options.d.ts +1 -1
  158. package/src/utils/bundle-inline-options.js +1 -1
  159. package/src/utils/color.d.ts +1 -1
  160. package/src/utils/color.js +1 -1
  161. package/src/utils/copy-assets.d.ts +1 -1
  162. package/src/utils/copy-assets.js +2 -3
  163. package/src/utils/default-progress.d.ts +1 -1
  164. package/src/utils/default-progress.js +2 -3
  165. package/src/utils/environment-options.d.ts +1 -1
  166. package/src/utils/environment-options.js +1 -1
  167. package/src/utils/error.d.ts +1 -1
  168. package/src/utils/error.js +2 -3
  169. package/src/utils/i18n-inlining.d.ts +1 -1
  170. package/src/utils/i18n-inlining.js +2 -3
  171. package/src/utils/i18n-webpack.d.ts +1 -1
  172. package/src/utils/i18n-webpack.js +3 -3
  173. package/src/utils/index.d.ts +1 -1
  174. package/src/utils/index.js +1 -1
  175. package/src/utils/load-esm.d.ts +1 -1
  176. package/src/utils/load-esm.js +2 -3
  177. package/src/utils/normalize-asset-patterns.d.ts +1 -1
  178. package/src/utils/normalize-asset-patterns.js +3 -3
  179. package/src/utils/normalize-builder-schema.d.ts +1 -1
  180. package/src/utils/normalize-builder-schema.js +2 -3
  181. package/src/utils/normalize-cache.d.ts +1 -1
  182. package/src/utils/normalize-cache.js +3 -4
  183. package/src/utils/normalize-file-replacements.d.ts +1 -1
  184. package/src/utils/normalize-file-replacements.js +3 -3
  185. package/src/utils/normalize-optimization.d.ts +1 -1
  186. package/src/utils/normalize-optimization.js +2 -3
  187. package/src/utils/normalize-polyfills.d.ts +1 -1
  188. package/src/utils/normalize-polyfills.js +2 -3
  189. package/src/utils/normalize-source-maps.d.ts +1 -1
  190. package/src/utils/normalize-source-maps.js +2 -3
  191. package/src/utils/output-paths.d.ts +1 -1
  192. package/src/utils/output-paths.js +2 -3
  193. package/src/utils/package-chunk-sort.d.ts +1 -1
  194. package/src/utils/package-chunk-sort.js +2 -3
  195. package/src/utils/package-version.d.ts +1 -1
  196. package/src/utils/package-version.js +1 -1
  197. package/src/utils/process-bundle.d.ts +3 -3
  198. package/src/utils/process-bundle.js +2 -3
  199. package/src/utils/read-tsconfig.d.ts +1 -1
  200. package/src/utils/read-tsconfig.js +2 -3
  201. package/src/utils/run-module-as-observable-fork.d.ts +1 -1
  202. package/src/utils/run-module-as-observable-fork.js +2 -3
  203. package/src/utils/run-module-worker.js +1 -1
  204. package/src/utils/spinner.d.ts +1 -1
  205. package/src/utils/spinner.js +1 -1
  206. package/src/utils/tailwind.d.ts +1 -1
  207. package/src/utils/tailwind.js +2 -3
  208. package/src/utils/test-files.d.ts +1 -1
  209. package/src/utils/test-files.js +2 -3
  210. package/src/utils/tty.d.ts +1 -1
  211. package/src/utils/tty.js +2 -3
  212. package/src/utils/url.d.ts +1 -1
  213. package/src/utils/url.js +2 -3
  214. package/src/utils/webpack-browser-config.d.ts +1 -1
  215. package/src/utils/webpack-browser-config.js +6 -7
  216. package/src/utils/webpack-diagnostics.d.ts +1 -1
  217. package/src/utils/webpack-diagnostics.js +3 -4
package/README.md CHANGED
@@ -4,20 +4,20 @@ This package contains [Architect builders](/packages/angular_devkit/architect/RE
4
4
 
5
5
  ## Builders
6
6
 
7
- | Name | Description |
8
- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
9
- | application | Build an Angular application targeting a browser and server environment using [esbuild](https://esbuild.github.io). |
10
- | app-shell | Build an Angular [App shell](https://angular.io/guide/app-shell). |
11
- | browser | Build an Angular application targeting a browser environment using [Webpack](https://webpack.js.org). |
12
- | browser-esbuild | Build an Angular application targeting a browser environment using [esbuild](https://esbuild.github.io). |
13
- | dev-server | A development server that provides live reloading. |
14
- | extract-i18n | Extract i18n messages from an Angular application. |
15
- | karma | Execute unit tests using [Karma](https://github.com/karma-runner/karma) test runner. |
16
- | ng-packagr | Build and package an Angular library in [Angular Package Format (APF)](https://angular.io/guide/angular-package-format) format using [ng-packagr](https://github.com/ng-packagr/ng-packagr). |
17
- | prerender | [Prerender](https://angular.io/guide/prerendering) pages of your application. Prerendering is the process where a dynamic page is processed at build time generating static HTML. |
18
- | server | Build an Angular application targeting a [Node.js](https://nodejs.org) environment. |
19
- | ssr-dev-server | A development server which offers live reload during development, but uses server-side rendering. |
20
- | protractor | **Deprecated** - Run end-to-end tests using [Protractor](https://www.protractortest.org/) framework. |
7
+ | Name | Description |
8
+ | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
9
+ | application | Build an Angular application targeting a browser and server environment using [esbuild](https://esbuild.github.io). |
10
+ | app-shell | Build an Angular [App shell](https://angular.dev/ecosystem/service-workers/app-shell). |
11
+ | browser | Build an Angular application targeting a browser environment using [Webpack](https://webpack.js.org). |
12
+ | browser-esbuild | Build an Angular application targeting a browser environment using [esbuild](https://esbuild.github.io). |
13
+ | dev-server | A development server that provides live reloading. |
14
+ | extract-i18n | Extract i18n messages from an Angular application. |
15
+ | karma | Execute unit tests using [Karma](https://github.com/karma-runner/karma) test runner. |
16
+ | ng-packagr | Build and package an Angular library in [Angular Package Format (APF)](https://angular.dev/tools/libraries/angular-package-format) format using [ng-packagr](https://github.com/ng-packagr/ng-packagr). |
17
+ | prerender | [Prerender](https://angular.dev/guide/prerendering) pages of your application. Prerendering is the process where a dynamic page is processed at build time generating static HTML. |
18
+ | server | Build an Angular application targeting a [Node.js](https://nodejs.org) environment. |
19
+ | ssr-dev-server | A development server which offers live reload during development, but uses server-side rendering. |
20
+ | protractor | **Deprecated** - Run end-to-end tests using [Protractor](https://www.protractortest.org/) framework. |
21
21
 
22
22
  ## Disclaimer
23
23
 
package/package.json CHANGED
@@ -1,51 +1,50 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "18.1.0-next.0",
3
+ "version": "18.1.0-next.2",
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/build": "18.1.0-next.0",
11
- "@angular-devkit/architect": "0.1801.0-next.0",
12
- "@angular-devkit/build-webpack": "0.1801.0-next.0",
13
- "@angular-devkit/core": "18.1.0-next.0",
14
- "@babel/core": "7.24.6",
15
- "@babel/generator": "7.24.6",
16
- "@babel/helper-annotate-as-pure": "7.24.6",
17
- "@babel/helper-split-export-declaration": "7.24.6",
18
- "@babel/plugin-transform-async-generator-functions": "7.24.6",
19
- "@babel/plugin-transform-async-to-generator": "7.24.6",
20
- "@babel/plugin-transform-runtime": "7.24.6",
21
- "@babel/preset-env": "7.24.6",
22
- "@babel/runtime": "7.24.6",
10
+ "@angular-devkit/architect": "0.1801.0-next.2",
11
+ "@angular-devkit/build-webpack": "0.1801.0-next.2",
12
+ "@angular-devkit/core": "18.1.0-next.2",
13
+ "@angular/build": "18.1.0-next.2",
14
+ "@babel/core": "7.24.7",
15
+ "@babel/generator": "7.24.7",
16
+ "@babel/helper-annotate-as-pure": "7.24.7",
17
+ "@babel/helper-split-export-declaration": "7.24.7",
18
+ "@babel/plugin-transform-async-generator-functions": "7.24.7",
19
+ "@babel/plugin-transform-async-to-generator": "7.24.7",
20
+ "@babel/plugin-transform-runtime": "7.24.7",
21
+ "@babel/preset-env": "7.24.7",
22
+ "@babel/runtime": "7.24.7",
23
23
  "@discoveryjs/json-ext": "0.5.7",
24
- "@ngtools/webpack": "18.1.0-next.0",
24
+ "@ngtools/webpack": "18.1.0-next.2",
25
25
  "@vitejs/plugin-basic-ssl": "1.1.0",
26
26
  "ansi-colors": "4.1.3",
27
27
  "autoprefixer": "10.4.19",
28
28
  "babel-loader": "9.1.3",
29
29
  "babel-plugin-istanbul": "6.1.1",
30
30
  "browserslist": "^4.21.5",
31
- "copy-webpack-plugin": "11.0.0",
31
+ "copy-webpack-plugin": "12.0.2",
32
32
  "critters": "0.0.22",
33
33
  "css-loader": "7.1.2",
34
- "esbuild-wasm": "0.21.4",
34
+ "esbuild-wasm": "0.21.5",
35
35
  "fast-glob": "3.3.2",
36
- "https-proxy-agent": "7.0.4",
37
36
  "http-proxy-middleware": "3.0.0",
38
- "inquirer": "9.2.22",
37
+ "https-proxy-agent": "7.0.4",
39
38
  "jsonc-parser": "3.2.1",
40
39
  "karma-source-map-support": "1.4.0",
41
40
  "less": "4.2.0",
42
41
  "less-loader": "12.2.0",
43
42
  "license-webpack-plugin": "4.0.2",
44
- "loader-utils": "3.2.1",
43
+ "loader-utils": "3.3.1",
45
44
  "magic-string": "0.30.10",
46
45
  "mini-css-extract-plugin": "2.9.0",
47
46
  "mrmime": "2.0.0",
48
- "open": "8.4.2",
47
+ "open": "10.1.0",
49
48
  "ora": "5.4.1",
50
49
  "parse5-html-rewriting-stream": "7.0.0",
51
50
  "picomatch": "4.0.2",
@@ -54,25 +53,25 @@
54
53
  "postcss-loader": "8.1.1",
55
54
  "resolve-url-loader": "5.0.0",
56
55
  "rxjs": "7.8.1",
57
- "sass": "1.77.2",
56
+ "sass": "1.77.5",
58
57
  "sass-loader": "14.2.1",
59
58
  "semver": "7.6.2",
60
59
  "source-map-loader": "5.0.0",
61
60
  "source-map-support": "0.5.21",
62
- "terser": "5.31.0",
61
+ "terser": "5.31.1",
63
62
  "tree-kill": "1.2.2",
64
- "tslib": "2.6.2",
65
- "undici": "6.18.1",
66
- "vite": "5.2.12",
63
+ "tslib": "2.6.3",
64
+ "undici": "6.18.2",
65
+ "vite": "5.2.13",
67
66
  "watchpack": "2.4.1",
68
- "webpack": "5.91.0",
67
+ "webpack": "5.92.0",
69
68
  "webpack-dev-middleware": "7.2.1",
70
69
  "webpack-dev-server": "5.0.4",
71
70
  "webpack-merge": "5.10.0",
72
71
  "webpack-subresource-integrity": "5.1.0"
73
72
  },
74
73
  "optionalDependencies": {
75
- "esbuild": "0.21.4"
74
+ "esbuild": "0.21.5"
76
75
  },
77
76
  "peerDependencies": {
78
77
  "@angular/compiler-cli": "^18.0.0 || ^18.1.0-next.0",
@@ -87,7 +86,7 @@
87
86
  "ng-packagr": "^18.0.0 || ^18.1.0-next.0",
88
87
  "protractor": "^7.0.0",
89
88
  "tailwindcss": "^2.0.0 || ^3.0.0",
90
- "typescript": ">=5.4 <5.5"
89
+ "typescript": ">=5.4 <5.6"
91
90
  },
92
91
  "peerDependenciesMeta": {
93
92
  "@angular/localize": {
@@ -131,6 +130,7 @@
131
130
  "devkit",
132
131
  "sdk"
133
132
  ],
133
+ "packageManager": "yarn@4.2.2",
134
134
  "repository": {
135
135
  "type": "git",
136
136
  "url": "https://github.com/angular/angular-cli.git"
@@ -145,5 +145,13 @@
145
145
  "bugs": {
146
146
  "url": "https://github.com/angular/angular-cli/issues"
147
147
  },
148
- "homepage": "https://github.com/angular/angular-cli"
148
+ "homepage": "https://github.com/angular/angular-cli",
149
+ "dependenciesMeta": {
150
+ "esbuild": {
151
+ "built": true
152
+ },
153
+ "puppeteer": {
154
+ "built": true
155
+ }
156
+ }
149
157
  }
@@ -3,5 +3,5 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
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.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
package/plugins/karma.js CHANGED
@@ -4,6 +4,6 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
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.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  module.exports = require('../src/tools/webpack/plugins/karma/karma');
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
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.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
 
9
9
  /* eslint-disable import/no-extraneous-dependencies */
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
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.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { JsonObject } from '@angular-devkit/core';
9
9
  import { Schema as BuildWebpackAppShellSchema } from './schema';
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
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.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
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.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  /**
9
9
  * A request to render a Server bundle generate by the universal server builder.
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
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.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
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.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { IndexHtmlTransform } from '@angular/build/private';
9
9
  import { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
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.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -30,7 +30,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.buildWebpackBrowser = exports.BUILD_TIMEOUT = void 0;
33
+ exports.BUILD_TIMEOUT = void 0;
34
+ exports.buildWebpackBrowser = buildWebpackBrowser;
34
35
  const private_1 = require("@angular/build/private");
35
36
  const architect_1 = require("@angular-devkit/architect");
36
37
  const build_webpack_1 = require("@angular-devkit/build-webpack");
@@ -311,7 +312,6 @@ function buildWebpackBrowser(options, context, transforms = {}) {
311
312
  return undefined;
312
313
  }
313
314
  }
314
- exports.buildWebpackBrowser = buildWebpackBrowser;
315
315
  function assertNever(input) {
316
316
  throw new Error(`Unexpected call to assertNever() with input: ${JSON.stringify(input, null /* replacer */, 4 /* tabSize */)}`);
317
317
  }
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
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.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { BuilderContext } from '@angular-devkit/architect';
9
9
  import { Schema as BrowserBuilderOptions } from './schema';
@@ -4,10 +4,10 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
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.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.logBuilderStatusWarnings = void 0;
10
+ exports.logBuilderStatusWarnings = logBuilderStatusWarnings;
11
11
  const UNSUPPORTED_OPTIONS = [
12
12
  // * Always enabled with esbuild
13
13
  // 'commonChunk',
@@ -37,4 +37,3 @@ function logBuilderStatusWarnings(options, { logger }) {
37
37
  logger.warn(`The '${unsupportedOption}' option is not yet supported by this builder.`);
38
38
  }
39
39
  }
40
- exports.logBuilderStatusWarnings = logBuilderStatusWarnings;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
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.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import type { BuildOutputFile } from '@angular/build';
9
9
  import { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
@@ -4,13 +4,13 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
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.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  return (mod && mod.__esModule) ? mod : { "default": mod };
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.buildEsbuildBrowser = void 0;
13
+ exports.buildEsbuildBrowser = buildEsbuildBrowser;
14
14
  const private_1 = require("@angular/build/private");
15
15
  const architect_1 = require("@angular-devkit/architect");
16
16
  const promises_1 = __importDefault(require("node:fs/promises"));
@@ -50,7 +50,6 @@ async function* buildEsbuildBrowser(userOptions, context, infrastructureSettings
50
50
  yield builderResult;
51
51
  }
52
52
  }
53
- exports.buildEsbuildBrowser = buildEsbuildBrowser;
54
53
  function normalizeOptions(options) {
55
54
  const { main: browser, outputPath, ngswConfigPath, serviceWorker, polyfills, ...otherOptions } = options;
56
55
  return {
@@ -3,9 +3,8 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
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.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
- /// <reference types="node" />
9
8
  import type { DevServerBuilderOutput } from '@angular/build';
10
9
  import { type IndexHtmlTransform } from '@angular/build/private';
11
10
  import type { BuilderContext } from '@angular-devkit/architect';
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
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.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -30,7 +30,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.isEsbuildBased = exports.execute = void 0;
33
+ exports.execute = execute;
34
+ exports.isEsbuildBased = isEsbuildBased;
34
35
  const private_1 = require("@angular/build/private");
35
36
  const rxjs_1 = require("rxjs");
36
37
  const options_1 = require("./options");
@@ -92,7 +93,6 @@ function execute(options, context, transforms = {}, extensions) {
92
93
  return (0, rxjs_1.defer)(() => Promise.resolve().then(() => __importStar(require('./webpack-server')))).pipe((0, rxjs_1.switchMap)(({ serveWebpackBrowser }) => serveWebpackBrowser(normalizedOptions, builderName, context, transforms)));
93
94
  }));
94
95
  }
95
- exports.execute = execute;
96
96
  async function initialize(initialOptions, projectName, context, builderSelector = defaultBuilderSelector) {
97
97
  // Purge old build disk cache.
98
98
  await (0, private_1.purgeStaleBuildCache)(context);
@@ -132,7 +132,6 @@ function isEsbuildBased(builderName) {
132
132
  }
133
133
  return false;
134
134
  }
135
- exports.isEsbuildBased = isEsbuildBased;
136
135
  function defaultBuilderSelector(info, logger) {
137
136
  if (isEsbuildBased(info.builderName)) {
138
137
  return info.builderName;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
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.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { DevServerBuilderOutput } from '@angular/build';
9
9
  import { execute } from './builder';
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
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.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.executeDevServer = exports.executeDevServerBuilder = void 0;
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
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.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { BuilderContext } from '@angular-devkit/architect';
9
9
  import { Schema as DevServerOptions } from './schema';
@@ -44,4 +44,8 @@ export declare function normalizeOptions(context: BuilderContext, projectName: s
44
44
  sslKey: string | undefined;
45
45
  forceEsbuild: boolean | undefined;
46
46
  prebundle: import("./schema").PrebundleUnion;
47
+ inspect: boolean | {
48
+ host?: string;
49
+ port?: number;
50
+ };
47
51
  }>;
@@ -4,13 +4,13 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
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.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  return (mod && mod.__esModule) ? mod : { "default": mod };
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.normalizeOptions = void 0;
13
+ exports.normalizeOptions = normalizeOptions;
14
14
  const architect_1 = require("@angular-devkit/architect");
15
15
  const node_path_1 = __importDefault(require("node:path"));
16
16
  const normalize_cache_1 = require("../../utils/normalize-cache");
@@ -50,6 +50,30 @@ async function normalizeOptions(context, projectName, options) {
50
50
  logger.warn('Prebundling has been configured but will not be used because scripts optimization is enabled.');
51
51
  }
52
52
  }
53
+ let inspect = false;
54
+ const inspectRaw = options.inspect;
55
+ if (inspectRaw === true || inspectRaw === '' || inspectRaw === 'true') {
56
+ inspect = {
57
+ host: undefined,
58
+ port: undefined,
59
+ };
60
+ }
61
+ else if (typeof inspectRaw === 'string' && inspectRaw !== 'false') {
62
+ const port = +inspectRaw;
63
+ if (isFinite(port)) {
64
+ inspect = {
65
+ host: undefined,
66
+ port,
67
+ };
68
+ }
69
+ else {
70
+ const [host, port] = inspectRaw.split(':');
71
+ inspect = {
72
+ host,
73
+ port: isNaN(+port) ? undefined : +port,
74
+ };
75
+ }
76
+ }
53
77
  // Initial options to keep
54
78
  const { host, port, poll, open, verbose, watch, allowedHosts, disableHostCheck, liveReload, hmr, headers, proxyConfig, servePath, publicHost, ssl, sslCert, sslKey, forceEsbuild, prebundle, } = options;
55
79
  // Return all the normalized options
@@ -78,6 +102,6 @@ async function normalizeOptions(context, projectName, options) {
78
102
  forceEsbuild,
79
103
  // Prebundling defaults to true but requires caching to function
80
104
  prebundle: cacheOptions.enabled && !optimization.scripts && (prebundle ?? true),
105
+ inspect,
81
106
  };
82
107
  }
83
- exports.normalizeOptions = normalizeOptions;
@@ -44,6 +44,11 @@ export interface Schema {
44
44
  * Host to listen on.
45
45
  */
46
46
  host?: string;
47
+ /**
48
+ * Activate debugging inspector. This option only has an effect when 'SSR' or 'SSG' are
49
+ * enabled.
50
+ */
51
+ inspect?: Inspect;
47
52
  /**
48
53
  * Whether to reload the page on change, using live-reload.
49
54
  */
@@ -103,6 +108,11 @@ export interface Schema {
103
108
  */
104
109
  watch?: boolean;
105
110
  }
111
+ /**
112
+ * Activate debugging inspector. This option only has an effect when 'SSR' or 'SSG' are
113
+ * enabled.
114
+ */
115
+ export type Inspect = boolean | string;
106
116
  /**
107
117
  * Enable and control the Vite-based development server's prebundling capabilities. To
108
118
  * enable prebundling, the Angular CLI cache must also be enabled. This option has no effect
@@ -102,6 +102,17 @@
102
102
  "type": "number",
103
103
  "description": "Enable and define the file watching poll time period in milliseconds."
104
104
  },
105
+ "inspect": {
106
+ "default": false,
107
+ "description": "Activate debugging inspector. This option only has an effect when 'SSR' or 'SSG' are enabled.",
108
+ "oneOf": [
109
+ {
110
+ "type": "string",
111
+ "description": "Activate the inspector on host and port in the format of `[[host:]port]`. See the security warning in https://nodejs.org/docs/latest-v22.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure regarding the host parameter usage."
112
+ },
113
+ { "type": "boolean" }
114
+ ]
115
+ },
105
116
  "forceEsbuild": {
106
117
  "type": "boolean",
107
118
  "description": "Force the development server to use the 'browser-esbuild' builder when building. This is a developer preview option for the esbuild-based build system.",
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
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.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { IndexHtmlTransform } from '@angular/build/private';
9
9
  import { BuilderContext } from '@angular-devkit/architect';
@@ -4,7 +4,7 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
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.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
10
  if (k2 === undefined) k2 = k;
@@ -30,7 +30,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
30
30
  return result;
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.serveWebpackBrowser = void 0;
33
+ exports.serveWebpackBrowser = serveWebpackBrowser;
34
34
  const private_1 = require("@angular/build/private");
35
35
  const build_webpack_1 = require("@angular-devkit/build-webpack");
36
36
  const core_1 = require("@angular-devkit/core");
@@ -44,6 +44,7 @@ const stats_1 = require("../../tools/webpack/utils/stats");
44
44
  const utils_1 = require("../../utils");
45
45
  const color_1 = require("../../utils/color");
46
46
  const i18n_webpack_1 = require("../../utils/i18n-webpack");
47
+ const load_esm_1 = require("../../utils/load-esm");
47
48
  const package_chunk_sort_1 = require("../../utils/package-chunk-sort");
48
49
  const webpack_browser_config_1 = require("../../utils/webpack-browser-config");
49
50
  const webpack_diagnostics_1 = require("../../utils/webpack-diagnostics");
@@ -182,7 +183,7 @@ function serveWebpackBrowser(options, builderName, context, transforms = {}) {
182
183
  ` +
183
184
  '\n');
184
185
  if (options.open) {
185
- const open = (await Promise.resolve().then(() => __importStar(require('open')))).default;
186
+ const open = (await (0, load_esm_1.loadEsmModule)('open')).default;
186
187
  await open(serverAddress);
187
188
  }
188
189
  }
@@ -200,7 +201,6 @@ function serveWebpackBrowser(options, builderName, context, transforms = {}) {
200
201
  }));
201
202
  }));
202
203
  }
203
- exports.serveWebpackBrowser = serveWebpackBrowser;
204
204
  async function setupLocalize(locale, i18n, browserOptions, webpackConfig, cacheOptions, context) {
205
205
  const localeDescription = i18n.locales[locale];
206
206
  // Modify main entrypoint to include locale data
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
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.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import type { ɵParsedMessage as LocalizeMessage } from '@angular/localize';
9
9
  import type { MessageExtractor } from '@angular/localize/tools';
@@ -4,13 +4,13 @@
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
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.io/license
7
+ * found in the LICENSE file at https://angular.dev/license
8
8
  */
9
9
  var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  return (mod && mod.__esModule) ? mod : { "default": mod };
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.extractMessages = void 0;
13
+ exports.extractMessages = extractMessages;
14
14
  const private_1 = require("@angular/build/private");
15
15
  const node_assert_1 = __importDefault(require("node:assert"));
16
16
  const node_path_1 = __importDefault(require("node:path"));
@@ -83,7 +83,6 @@ async function extractMessages(options, builderName, context, extractorConstruct
83
83
  useLegacyIds: false,
84
84
  };
85
85
  }
86
- exports.extractMessages = extractMessages;
87
86
  function setupLocalizeExtractor(extractorConstructor, files, context) {
88
87
  // Setup a virtual file system instance for the extractor
89
88
  // * MessageExtractor itself uses readFile, relative and resolve
@@ -3,7 +3,7 @@
3
3
  * Copyright Google LLC All Rights Reserved.
4
4
  *
5
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.io/license
6
+ * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import type { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
9
9
  import type webpack from 'webpack';