@angular/build 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 (256) hide show
  1. package/package.json +23 -14
  2. package/src/builders/application/build-action.d.ts +1 -1
  3. package/src/builders/application/build-action.js +2 -3
  4. package/src/builders/application/execute-build.d.ts +1 -1
  5. package/src/builders/application/execute-build.js +2 -3
  6. package/src/builders/application/execute-post-bundle.d.ts +1 -1
  7. package/src/builders/application/execute-post-bundle.js +2 -3
  8. package/src/builders/application/i18n.d.ts +1 -1
  9. package/src/builders/application/i18n.js +3 -4
  10. package/src/builders/application/index.d.ts +1 -1
  11. package/src/builders/application/index.js +3 -4
  12. package/src/builders/application/options.d.ts +3 -3
  13. package/src/builders/application/options.js +2 -3
  14. package/src/builders/application/setup-bundling.d.ts +1 -1
  15. package/src/builders/application/setup-bundling.js +3 -9
  16. package/src/builders/dev-server/builder.d.ts +1 -2
  17. package/src/builders/dev-server/builder.js +2 -3
  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/internal.d.ts +1 -1
  21. package/src/builders/dev-server/internal.js +1 -1
  22. package/src/builders/dev-server/options.d.ts +5 -1
  23. package/src/builders/dev-server/options.js +27 -3
  24. package/src/builders/dev-server/output.d.ts +1 -1
  25. package/src/builders/dev-server/output.js +1 -1
  26. package/src/builders/dev-server/schema.d.ts +10 -0
  27. package/src/builders/dev-server/schema.json +11 -0
  28. package/src/builders/dev-server/vite-server.d.ts +1 -1
  29. package/src/builders/dev-server/vite-server.js +43 -35
  30. package/src/builders/extract-i18n/application-extraction.d.ts +1 -1
  31. package/src/builders/extract-i18n/application-extraction.js +2 -3
  32. package/src/builders/extract-i18n/builder.d.ts +1 -1
  33. package/src/builders/extract-i18n/builder.js +2 -3
  34. package/src/builders/extract-i18n/index.d.ts +1 -1
  35. package/src/builders/extract-i18n/index.js +1 -1
  36. package/src/builders/extract-i18n/options.d.ts +1 -1
  37. package/src/builders/extract-i18n/options.js +2 -3
  38. package/src/index.d.ts +1 -1
  39. package/src/index.js +1 -1
  40. package/src/private.d.ts +1 -1
  41. package/src/private.js +1 -1
  42. package/src/tools/babel/plugins/adjust-static-class-members.d.ts +1 -2
  43. package/src/tools/babel/plugins/adjust-static-class-members.js +3 -4
  44. package/src/tools/babel/plugins/adjust-typescript-enums.d.ts +1 -2
  45. package/src/tools/babel/plugins/adjust-typescript-enums.js +3 -4
  46. package/src/tools/babel/plugins/elide-angular-metadata.d.ts +1 -2
  47. package/src/tools/babel/plugins/elide-angular-metadata.js +3 -4
  48. package/src/tools/babel/plugins/index.d.ts +1 -1
  49. package/src/tools/babel/plugins/index.js +1 -1
  50. package/src/tools/babel/plugins/pure-toplevel-functions.d.ts +1 -2
  51. package/src/tools/babel/plugins/pure-toplevel-functions.js +2 -2
  52. package/src/tools/babel/typings.d.ts +1 -1
  53. package/src/tools/esbuild/angular/angular-host.d.ts +1 -1
  54. package/src/tools/esbuild/angular/angular-host.js +3 -4
  55. package/src/tools/esbuild/angular/compilation/angular-compilation.d.ts +1 -1
  56. package/src/tools/esbuild/angular/compilation/angular-compilation.js +1 -1
  57. package/src/tools/esbuild/angular/compilation/aot-compilation.d.ts +1 -1
  58. package/src/tools/esbuild/angular/compilation/aot-compilation.js +43 -8
  59. package/src/tools/esbuild/angular/compilation/factory.d.ts +1 -1
  60. package/src/tools/esbuild/angular/compilation/factory.js +2 -3
  61. package/src/tools/esbuild/angular/compilation/index.d.ts +1 -1
  62. package/src/tools/esbuild/angular/compilation/index.js +1 -1
  63. package/src/tools/esbuild/angular/compilation/jit-bootstrap-transformer.d.ts +1 -1
  64. package/src/tools/esbuild/angular/compilation/jit-bootstrap-transformer.js +3 -4
  65. package/src/tools/esbuild/angular/compilation/jit-compilation.d.ts +1 -1
  66. package/src/tools/esbuild/angular/compilation/jit-compilation.js +1 -1
  67. package/src/tools/esbuild/angular/compilation/noop-compilation.d.ts +1 -1
  68. package/src/tools/esbuild/angular/compilation/noop-compilation.js +1 -1
  69. package/src/tools/esbuild/angular/compilation/parallel-compilation.d.ts +1 -1
  70. package/src/tools/esbuild/angular/compilation/parallel-compilation.js +1 -1
  71. package/src/tools/esbuild/angular/compilation/parallel-worker.d.ts +3 -2
  72. package/src/tools/esbuild/angular/compilation/parallel-worker.js +11 -8
  73. package/src/tools/esbuild/angular/compilation-state.d.ts +1 -1
  74. package/src/tools/esbuild/angular/compilation-state.js +3 -3
  75. package/src/tools/esbuild/angular/compiler-plugin.d.ts +2 -2
  76. package/src/tools/esbuild/angular/compiler-plugin.js +27 -13
  77. package/src/tools/esbuild/angular/component-stylesheets.d.ts +1 -1
  78. package/src/tools/esbuild/angular/component-stylesheets.js +1 -1
  79. package/src/tools/esbuild/angular/diagnostics.d.ts +1 -1
  80. package/src/tools/esbuild/angular/diagnostics.js +2 -3
  81. package/src/tools/esbuild/angular/file-reference-tracker.d.ts +1 -1
  82. package/src/tools/esbuild/angular/file-reference-tracker.js +1 -1
  83. package/src/tools/esbuild/angular/jit-plugin-callbacks.d.ts +1 -1
  84. package/src/tools/esbuild/angular/jit-plugin-callbacks.js +2 -3
  85. package/src/tools/esbuild/angular/jit-resource-transformer.d.ts +1 -1
  86. package/src/tools/esbuild/angular/jit-resource-transformer.js +2 -3
  87. package/src/tools/esbuild/angular/source-file-cache.d.ts +1 -1
  88. package/src/tools/esbuild/angular/source-file-cache.js +1 -1
  89. package/src/tools/esbuild/angular/uri.d.ts +1 -1
  90. package/src/tools/esbuild/angular/uri.js +5 -5
  91. package/src/tools/esbuild/angular/web-worker-transformer.d.ts +1 -1
  92. package/src/tools/esbuild/angular/web-worker-transformer.js +2 -3
  93. package/src/tools/esbuild/application-code-bundle.d.ts +1 -1
  94. package/src/tools/esbuild/application-code-bundle.js +21 -7
  95. package/src/tools/esbuild/budget-stats.d.ts +1 -1
  96. package/src/tools/esbuild/budget-stats.js +2 -3
  97. package/src/tools/esbuild/bundler-context.d.ts +1 -1
  98. package/src/tools/esbuild/bundler-context.js +1 -1
  99. package/src/tools/esbuild/bundler-execution-result.d.ts +1 -1
  100. package/src/tools/esbuild/bundler-execution-result.js +1 -1
  101. package/src/tools/esbuild/cache.d.ts +1 -1
  102. package/src/tools/esbuild/cache.js +1 -1
  103. package/src/tools/esbuild/commonjs-checker.d.ts +1 -1
  104. package/src/tools/esbuild/commonjs-checker.js +2 -3
  105. package/src/tools/esbuild/compiler-plugin-options.d.ts +1 -1
  106. package/src/tools/esbuild/compiler-plugin-options.js +3 -4
  107. package/src/tools/esbuild/external-packages-plugin.d.ts +1 -1
  108. package/src/tools/esbuild/external-packages-plugin.js +2 -3
  109. package/src/tools/esbuild/global-scripts.d.ts +1 -1
  110. package/src/tools/esbuild/global-scripts.js +2 -3
  111. package/src/tools/esbuild/global-styles.d.ts +1 -1
  112. package/src/tools/esbuild/global-styles.js +3 -4
  113. package/src/tools/esbuild/i18n-inliner-worker.d.ts +2 -2
  114. package/src/tools/esbuild/i18n-inliner-worker.js +2 -2
  115. package/src/tools/esbuild/i18n-inliner.d.ts +1 -1
  116. package/src/tools/esbuild/i18n-inliner.js +1 -1
  117. package/src/tools/esbuild/i18n-locale-plugin.d.ts +1 -1
  118. package/src/tools/esbuild/i18n-locale-plugin.js +3 -3
  119. package/src/tools/esbuild/index-html-generator.d.ts +1 -1
  120. package/src/tools/esbuild/index-html-generator.js +9 -12
  121. package/src/tools/esbuild/javascript-transformer-worker.d.ts +1 -1
  122. package/src/tools/esbuild/javascript-transformer-worker.js +2 -2
  123. package/src/tools/esbuild/javascript-transformer.d.ts +2 -2
  124. package/src/tools/esbuild/javascript-transformer.js +1 -1
  125. package/src/tools/esbuild/license-extractor.d.ts +1 -1
  126. package/src/tools/esbuild/license-extractor.js +2 -3
  127. package/src/tools/esbuild/lmdb-cache-store.d.ts +1 -1
  128. package/src/tools/esbuild/lmdb-cache-store.js +1 -1
  129. package/src/tools/esbuild/load-result-cache.d.ts +1 -1
  130. package/src/tools/esbuild/load-result-cache.js +3 -3
  131. package/src/tools/esbuild/profiling.d.ts +1 -1
  132. package/src/tools/esbuild/profiling.js +5 -6
  133. package/src/tools/esbuild/rxjs-esm-resolution-plugin.d.ts +1 -1
  134. package/src/tools/esbuild/rxjs-esm-resolution-plugin.js +2 -3
  135. package/src/tools/esbuild/sourcemap-ignorelist-plugin.d.ts +1 -1
  136. package/src/tools/esbuild/sourcemap-ignorelist-plugin.js +2 -3
  137. package/src/tools/esbuild/stylesheets/bundle-options.d.ts +1 -1
  138. package/src/tools/esbuild/stylesheets/bundle-options.js +2 -3
  139. package/src/tools/esbuild/stylesheets/css-inline-fonts-plugin.d.ts +1 -1
  140. package/src/tools/esbuild/stylesheets/css-inline-fonts-plugin.js +2 -3
  141. package/src/tools/esbuild/stylesheets/css-language.d.ts +1 -1
  142. package/src/tools/esbuild/stylesheets/css-language.js +1 -1
  143. package/src/tools/esbuild/stylesheets/css-resource-plugin.d.ts +1 -1
  144. package/src/tools/esbuild/stylesheets/css-resource-plugin.js +2 -3
  145. package/src/tools/esbuild/stylesheets/less-language.d.ts +1 -1
  146. package/src/tools/esbuild/stylesheets/less-language.js +1 -1
  147. package/src/tools/esbuild/stylesheets/sass-language.d.ts +1 -1
  148. package/src/tools/esbuild/stylesheets/sass-language.js +30 -4
  149. package/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.d.ts +9 -2
  150. package/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.js +46 -41
  151. package/src/tools/esbuild/utils.d.ts +1 -1
  152. package/src/tools/esbuild/utils.js +16 -17
  153. package/src/tools/esbuild/virtual-module-plugin.d.ts +1 -1
  154. package/src/tools/esbuild/virtual-module-plugin.js +2 -3
  155. package/src/tools/esbuild/watcher.d.ts +1 -1
  156. package/src/tools/esbuild/watcher.js +3 -3
  157. package/src/tools/sass/lexer.d.ts +1 -1
  158. package/src/tools/sass/lexer.js +2 -3
  159. package/src/tools/sass/rebasing-importer.d.ts +1 -1
  160. package/src/tools/sass/rebasing-importer.js +3 -3
  161. package/src/tools/sass/sass-service.d.ts +1 -1
  162. package/src/tools/sass/sass-service.js +4 -2
  163. package/src/tools/sass/worker.d.ts +3 -5
  164. package/src/tools/sass/worker.js +2 -2
  165. package/src/tools/vite/angular-memory-plugin.d.ts +1 -1
  166. package/src/tools/vite/angular-memory-plugin.js +2 -3
  167. package/src/tools/vite/i18n-locale-plugin.d.ts +1 -1
  168. package/src/tools/vite/i18n-locale-plugin.js +3 -3
  169. package/src/utils/bundle-calculator.d.ts +1 -1
  170. package/src/utils/bundle-calculator.js +5 -5
  171. package/src/utils/check-port.d.ts +1 -1
  172. package/src/utils/check-port.js +28 -9
  173. package/src/utils/color.d.ts +1 -1
  174. package/src/utils/color.js +1 -1
  175. package/src/utils/delete-output-dir.d.ts +1 -1
  176. package/src/utils/delete-output-dir.js +2 -3
  177. package/src/utils/environment-options.d.ts +1 -1
  178. package/src/utils/environment-options.js +1 -1
  179. package/src/utils/error.d.ts +1 -1
  180. package/src/utils/error.js +2 -3
  181. package/src/utils/format-bytes.d.ts +1 -1
  182. package/src/utils/format-bytes.js +2 -3
  183. package/src/utils/i18n-options.d.ts +1 -1
  184. package/src/utils/i18n-options.js +3 -4
  185. package/src/utils/index-file/add-event-dispatch-contract.d.ts +1 -1
  186. package/src/utils/index-file/add-event-dispatch-contract.js +2 -3
  187. package/src/utils/index-file/augment-index-html.d.ts +1 -1
  188. package/src/utils/index-file/augment-index-html.js +22 -10
  189. package/src/utils/index-file/html-rewriting-stream.d.ts +1 -1
  190. package/src/utils/index-file/html-rewriting-stream.js +2 -3
  191. package/src/utils/index-file/index-html-generator.d.ts +1 -1
  192. package/src/utils/index-file/index-html-generator.js +1 -1
  193. package/src/utils/index-file/inline-critical-css.d.ts +1 -1
  194. package/src/utils/index-file/inline-critical-css.js +1 -1
  195. package/src/utils/index-file/inline-fonts.d.ts +1 -1
  196. package/src/utils/index-file/inline-fonts.js +1 -1
  197. package/src/utils/index-file/nonce.d.ts +1 -1
  198. package/src/utils/index-file/nonce.js +2 -3
  199. package/src/utils/index-file/valid-self-closing-tags.d.ts +1 -1
  200. package/src/utils/index-file/valid-self-closing-tags.js +1 -1
  201. package/src/utils/index.d.ts +1 -1
  202. package/src/utils/index.js +1 -1
  203. package/src/utils/load-esm.d.ts +1 -1
  204. package/src/utils/load-esm.js +2 -3
  205. package/src/utils/load-proxy-config.d.ts +1 -1
  206. package/src/utils/load-proxy-config.js +2 -3
  207. package/src/utils/load-translations.d.ts +1 -1
  208. package/src/utils/load-translations.js +2 -3
  209. package/src/utils/normalize-asset-patterns.d.ts +1 -1
  210. package/src/utils/normalize-asset-patterns.js +3 -3
  211. package/src/utils/normalize-cache.d.ts +1 -1
  212. package/src/utils/normalize-cache.js +3 -4
  213. package/src/utils/normalize-optimization.d.ts +1 -1
  214. package/src/utils/normalize-optimization.js +2 -3
  215. package/src/utils/normalize-source-maps.d.ts +1 -1
  216. package/src/utils/normalize-source-maps.js +2 -3
  217. package/src/utils/postcss-configuration.d.ts +1 -1
  218. package/src/utils/postcss-configuration.js +4 -5
  219. package/src/utils/purge-cache.d.ts +1 -1
  220. package/src/utils/purge-cache.js +2 -3
  221. package/src/utils/resolve-assets.d.ts +1 -1
  222. package/src/utils/resolve-assets.js +2 -3
  223. package/src/utils/routes-extractor/extractor.d.ts +1 -1
  224. package/src/utils/routes-extractor/extractor.js +1 -1
  225. package/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.d.ts +1 -1
  226. package/src/utils/server-rendering/esm-in-memory-loader/loader-hooks.js +4 -5
  227. package/src/utils/server-rendering/esm-in-memory-loader/register-hooks.d.ts +1 -1
  228. package/src/utils/server-rendering/esm-in-memory-loader/register-hooks.js +1 -1
  229. package/src/utils/server-rendering/fetch-patch.d.ts +1 -1
  230. package/src/utils/server-rendering/fetch-patch.js +2 -3
  231. package/src/utils/server-rendering/load-esm-from-memory.d.ts +1 -1
  232. package/src/utils/server-rendering/load-esm-from-memory.js +2 -3
  233. package/src/utils/server-rendering/main-bundle-exports.d.ts +1 -1
  234. package/src/utils/server-rendering/main-bundle-exports.js +1 -1
  235. package/src/utils/server-rendering/prerender.d.ts +1 -1
  236. package/src/utils/server-rendering/prerender.js +2 -3
  237. package/src/utils/server-rendering/render-page.d.ts +1 -1
  238. package/src/utils/server-rendering/render-page.js +2 -3
  239. package/src/utils/server-rendering/render-worker.d.ts +1 -1
  240. package/src/utils/server-rendering/render-worker.js +1 -1
  241. package/src/utils/server-rendering/routes-extractor-worker.d.ts +1 -1
  242. package/src/utils/server-rendering/routes-extractor-worker.js +1 -1
  243. package/src/utils/service-worker.d.ts +1 -3
  244. package/src/utils/service-worker.js +4 -5
  245. package/src/utils/spinner.d.ts +1 -1
  246. package/src/utils/spinner.js +1 -1
  247. package/src/utils/stats-table.d.ts +1 -1
  248. package/src/utils/stats-table.js +3 -4
  249. package/src/utils/supported-browsers.d.ts +1 -1
  250. package/src/utils/supported-browsers.js +2 -3
  251. package/src/utils/tty.d.ts +1 -1
  252. package/src/utils/tty.js +2 -3
  253. package/src/utils/url.d.ts +1 -1
  254. package/src/utils/url.js +2 -3
  255. package/src/utils/version.d.ts +1 -1
  256. package/src/utils/version.js +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/build",
3
- "version": "18.1.0-next.0",
3
+ "version": "18.1.0-next.2",
4
4
  "description": "Official build system for Angular",
5
5
  "keywords": [
6
6
  "Angular CLI",
@@ -23,29 +23,29 @@
23
23
  "builders": "builders.json",
24
24
  "dependencies": {
25
25
  "@ampproject/remapping": "2.3.0",
26
- "@angular-devkit/architect": "0.1801.0-next.0",
27
- "@babel/core": "7.24.6",
28
- "@babel/helper-annotate-as-pure": "7.24.6",
29
- "@babel/helper-split-export-declaration": "7.24.6",
26
+ "@angular-devkit/architect": "0.1801.0-next.2",
27
+ "@babel/core": "7.24.7",
28
+ "@babel/helper-annotate-as-pure": "7.24.7",
29
+ "@babel/helper-split-export-declaration": "7.24.7",
30
+ "@inquirer/confirm": "3.1.9",
30
31
  "@vitejs/plugin-basic-ssl": "1.1.0",
31
32
  "ansi-colors": "4.1.3",
32
33
  "browserslist": "^4.23.0",
33
34
  "critters": "0.0.22",
34
- "esbuild": "0.21.4",
35
+ "esbuild": "0.21.5",
35
36
  "fast-glob": "3.3.2",
36
37
  "https-proxy-agent": "7.0.4",
37
- "inquirer": "9.2.22",
38
- "lmdb": "3.0.11",
38
+ "lmdb": "3.0.12",
39
39
  "magic-string": "0.30.10",
40
40
  "mrmime": "2.0.0",
41
41
  "ora": "5.4.1",
42
+ "parse5-html-rewriting-stream": "7.0.0",
42
43
  "picomatch": "4.0.2",
43
44
  "piscina": "4.5.1",
44
- "parse5-html-rewriting-stream": "7.0.0",
45
- "sass": "1.77.2",
45
+ "sass": "1.77.5",
46
46
  "semver": "7.6.2",
47
- "undici": "6.18.1",
48
- "vite": "5.2.12",
47
+ "undici": "6.18.2",
48
+ "vite": "5.2.13",
49
49
  "watchpack": "2.4.1"
50
50
  },
51
51
  "peerDependencies": {
@@ -56,7 +56,7 @@
56
56
  "less": "^4.2.0",
57
57
  "postcss": "^8.4.0",
58
58
  "tailwindcss": "^2.0.0 || ^3.0.0",
59
- "typescript": ">=5.4 <5.5"
59
+ "typescript": ">=5.4 <5.6"
60
60
  },
61
61
  "peerDependenciesMeta": {
62
62
  "@angular/localize": {
@@ -78,6 +78,7 @@
78
78
  "optional": true
79
79
  }
80
80
  },
81
+ "packageManager": "yarn@4.2.2",
81
82
  "repository": {
82
83
  "type": "git",
83
84
  "url": "https://github.com/angular/angular-cli.git"
@@ -92,5 +93,13 @@
92
93
  "bugs": {
93
94
  "url": "https://github.com/angular/angular-cli/issues"
94
95
  },
95
- "homepage": "https://github.com/angular/angular-cli"
96
+ "homepage": "https://github.com/angular/angular-cli",
97
+ "dependenciesMeta": {
98
+ "esbuild": {
99
+ "built": true
100
+ },
101
+ "puppeteer": {
102
+ "built": true
103
+ }
104
+ }
96
105
  }
@@ -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, BuilderOutput } from '@angular-devkit/architect';
9
9
  import { BuildOutputFile } from '../../tools/esbuild/bundler-context';
@@ -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;
@@ -33,7 +33,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
33
33
  return (mod && mod.__esModule) ? mod : { "default": mod };
34
34
  };
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.runEsBuildBuildAction = void 0;
36
+ exports.runEsBuildBuildAction = runEsBuildBuildAction;
37
37
  const node_fs_1 = require("node:fs");
38
38
  const node_path_1 = __importDefault(require("node:path"));
39
39
  const sass_language_1 = require("../../tools/esbuild/stylesheets/sass-language");
@@ -167,7 +167,6 @@ async function* runEsBuildBuildAction(action, options) {
167
167
  (0, sass_language_1.shutdownSassWorkerPool)();
168
168
  }
169
169
  }
170
- exports.runEsBuildBuildAction = runEsBuildBuildAction;
171
170
  async function writeAndEmitOutput(writeToFileSystem, { outputFiles, output, outputWithFiles, assetFiles }, outputOptions, writeToFileSystemFilter) {
172
171
  if (writeToFileSystem) {
173
172
  // Write output files
@@ -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 { ExecutionResult, RebuildState } from '../../tools/esbuild/bundler-execution-result';
@@ -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.executeBuild = void 0;
10
+ exports.executeBuild = executeBuild;
11
11
  const source_file_cache_1 = require("../../tools/esbuild/angular/source-file-cache");
12
12
  const budget_stats_1 = require("../../tools/esbuild/budget-stats");
13
13
  const bundler_context_1 = require("../../tools/esbuild/bundler-context");
@@ -126,4 +126,3 @@ async function executeBuild(options, context, rebuildState) {
126
126
  }
127
127
  return executionResult;
128
128
  }
129
- exports.executeBuild = executeBuild;
@@ -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 { BuildOutputFile, InitialFileRecord } from '../../tools/esbuild/bundler-context';
9
9
  import { BuildOutputAsset } from '../../tools/esbuild/bundler-execution-result';
@@ -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.executePostBundleSteps = void 0;
13
+ exports.executePostBundleSteps = executePostBundleSteps;
14
14
  const node_assert_1 = __importDefault(require("node:assert"));
15
15
  const bundler_context_1 = require("../../tools/esbuild/bundler-context");
16
16
  const index_html_generator_1 = require("../../tools/esbuild/index-html-generator");
@@ -90,4 +90,3 @@ async function executePostBundleSteps(options, outputFiles, assetFiles, initialF
90
90
  additionalOutputFiles,
91
91
  };
92
92
  }
93
- exports.executePostBundleSteps = executePostBundleSteps;
@@ -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 { InitialFileRecord } from '../../tools/esbuild/bundler-context';
@@ -4,10 +4,11 @@
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.loadActiveTranslations = exports.inlineI18n = void 0;
10
+ exports.inlineI18n = inlineI18n;
11
+ exports.loadActiveTranslations = loadActiveTranslations;
11
12
  const node_path_1 = require("node:path");
12
13
  const bundler_context_1 = require("../../tools/esbuild/bundler-context");
13
14
  const i18n_inliner_1 = require("../../tools/esbuild/i18n-inliner");
@@ -89,7 +90,6 @@ async function inlineI18n(options, executionResult, initialFiles) {
89
90
  }
90
91
  return inlineResult;
91
92
  }
92
- exports.inlineI18n = inlineI18n;
93
93
  function getLocaleBaseHref(baseHref, i18n, locale) {
94
94
  if (i18n.flatOutput) {
95
95
  return undefined;
@@ -125,4 +125,3 @@ async function loadActiveTranslations(context, i18n) {
125
125
  }, undefined, i18n.duplicateTranslationBehavior);
126
126
  }
127
127
  }
128
- exports.loadActiveTranslations = loadActiveTranslations;
@@ -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, BuilderOutput } from '@angular-devkit/architect';
9
9
  import type { Plugin } from 'esbuild';
@@ -4,10 +4,11 @@
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.buildApplication = exports.buildApplicationInternal = void 0;
10
+ exports.buildApplicationInternal = buildApplicationInternal;
11
+ exports.buildApplication = buildApplication;
11
12
  const architect_1 = require("@angular-devkit/architect");
12
13
  const bundler_context_1 = require("../../tools/esbuild/bundler-context");
13
14
  const utils_1 = require("../../tools/esbuild/utils");
@@ -104,7 +105,6 @@ context, infrastructureSettings, extensions) {
104
105
  signal,
105
106
  });
106
107
  }
107
- exports.buildApplicationInternal = buildApplicationInternal;
108
108
  function buildApplication(options, context, pluginsOrExtensions) {
109
109
  let extensions;
110
110
  if (pluginsOrExtensions && Array.isArray(pluginsOrExtensions)) {
@@ -117,5 +117,4 @@ function buildApplication(options, context, pluginsOrExtensions) {
117
117
  }
118
118
  return buildApplicationInternal(options, context, undefined, extensions);
119
119
  }
120
- exports.buildApplication = buildApplication;
121
120
  exports.default = (0, architect_1.createBuilder)(buildApplication);
@@ -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 } from '@angular-devkit/architect';
9
9
  import type { Plugin } from 'esbuild';
@@ -131,8 +131,8 @@ export declare function normalizeOptions(context: BuilderContext, projectName: s
131
131
  } | undefined;
132
132
  postcssConfiguration: import("../../utils/postcss-configuration").PostcssConfiguration | undefined;
133
133
  i18nOptions: I18nOptions & {
134
- duplicateTranslationBehavior?: I18NTranslation | undefined;
135
- missingTranslationBehavior?: I18NTranslation | undefined;
134
+ duplicateTranslationBehavior?: I18NTranslation;
135
+ missingTranslationBehavior?: I18NTranslation;
136
136
  };
137
137
  namedChunks: boolean | undefined;
138
138
  budgets: import("./schema").Budget[] | undefined;
@@ -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 node_fs_1 = require("node:fs");
15
15
  const promises_1 = require("node:fs/promises");
16
16
  const node_module_1 = require("node:module");
@@ -247,7 +247,6 @@ async function normalizeOptions(context, projectName, options, extensions) {
247
247
  define,
248
248
  };
249
249
  }
250
- exports.normalizeOptions = normalizeOptions;
251
250
  async function getTailwindConfig(searchDirectories, workspaceRoot, context) {
252
251
  const tailwindConfigurationPath = (0, postcss_configuration_1.findTailwindConfiguration)(searchDirectories);
253
252
  if (!tailwindConfigurationPath) {
@@ -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 { SourceFileCache } from '../../tools/esbuild/angular/source-file-cache';
9
9
  import { BundlerContext } from '../../tools/esbuild/bundler-context';
@@ -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.setupBundlerContexts = void 0;
10
+ exports.setupBundlerContexts = setupBundlerContexts;
11
11
  const application_code_bundle_1 = require("../../tools/esbuild/application-code-bundle");
12
12
  const bundler_context_1 = require("../../tools/esbuild/bundler-context");
13
13
  const global_scripts_1 = require("../../tools/esbuild/global-scripts");
@@ -54,12 +54,7 @@ function setupBundlerContexts(options, browsers, codeBundleCache) {
54
54
  if (serverEntryPoint && (prerenderOptions || appShellOptions || ssrOptions)) {
55
55
  const nodeTargets = [...target, ...(0, utils_1.getSupportedNodeTargets)()];
56
56
  // Server application code
57
- bundlerContexts.push(new bundler_context_1.BundlerContext(workspaceRoot, !!options.watch, (0, application_code_bundle_1.createServerCodeBundleOptions)({
58
- ...options,
59
- // Disable external deps for server bundles.
60
- // This is because it breaks Vite 'optimizeDeps' for SSR.
61
- externalPackages: false,
62
- }, nodeTargets, codeBundleCache)));
57
+ bundlerContexts.push(new bundler_context_1.BundlerContext(workspaceRoot, !!options.watch, (0, application_code_bundle_1.createServerCodeBundleOptions)(options, nodeTargets, codeBundleCache)));
63
58
  // Server polyfills code
64
59
  const serverPolyfillBundleOptions = (0, application_code_bundle_1.createServerPolyfillBundleOptions)(options, nodeTargets, codeBundleCache);
65
60
  if (serverPolyfillBundleOptions) {
@@ -68,4 +63,3 @@ function setupBundlerContexts(options, browsers, codeBundleCache) {
68
63
  }
69
64
  return bundlerContexts;
70
65
  }
71
- exports.setupBundlerContexts = setupBundlerContexts;
@@ -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 { BuilderContext } from '@angular-devkit/architect';
10
9
  import type { Plugin } from 'esbuild';
11
10
  import type http from 'node:http';
@@ -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.execute = void 0;
10
+ exports.execute = execute;
11
11
  const check_port_1 = require("../../utils/check-port");
12
12
  const internal_1 = require("./internal");
13
13
  const options_1 = require("./options");
@@ -39,7 +39,6 @@ async function* execute(options, context, extensions) {
39
39
  }
40
40
  yield* (0, vite_server_1.serveWithVite)(normalizedOptions, builderName, (options, context, plugins) => (0, internal_1.buildApplicationInternal)(options, context, { write: false }, { codePlugins: plugins }), context, { indexHtml: extensions?.indexHtmlTransformer }, extensions);
41
41
  }
42
- exports.execute = execute;
43
42
  async function initialize(initialOptions, projectName, context) {
44
43
  // Purge old build disk cache.
45
44
  await (0, internal_1.purgeStaleBuildCache)(context);
@@ -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 { execute } from './builder';
9
9
  import { DevServerBuilderOutput } from './output';
@@ -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
  export { BuildOutputFile, BuildOutputFileType } from '@angular/build';
9
9
  export { createRxjsEsmResolutionPlugin } from '../../tools/esbuild/rxjs-esm-resolution-plugin';
@@ -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.buildApplicationInternal = exports.transformSupportedBrowsersToTargets = exports.getSupportedBrowsers = exports.purgeStaleBuildCache = exports.renderPage = exports.isZonelessApp = exports.getFeatureSupport = exports.JavaScriptTransformer = exports.createRxjsEsmResolutionPlugin = exports.BuildOutputFileType = 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';
@@ -40,4 +40,8 @@ export declare function normalizeOptions(context: BuilderContext, projectName: s
40
40
  sslCert: string | undefined;
41
41
  sslKey: string | undefined;
42
42
  prebundle: import("./schema").PrebundleUnion | undefined;
43
+ inspect: boolean | {
44
+ host?: string;
45
+ port?: number;
46
+ };
43
47
  }>;
@@ -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 utils_1 = require("../../utils");
@@ -48,6 +48,30 @@ async function normalizeOptions(context, projectName, options) {
48
48
  logger.warn('Prebundling has been configured but will not be used because scripts optimization is enabled.');
49
49
  }
50
50
  }
51
+ let inspect = false;
52
+ const inspectRaw = options.inspect;
53
+ if (inspectRaw === true || inspectRaw === '' || inspectRaw === 'true') {
54
+ inspect = {
55
+ host: undefined,
56
+ port: undefined,
57
+ };
58
+ }
59
+ else if (typeof inspectRaw === 'string' && inspectRaw !== 'false') {
60
+ const port = +inspectRaw;
61
+ if (isFinite(port)) {
62
+ inspect = {
63
+ host: undefined,
64
+ port,
65
+ };
66
+ }
67
+ else {
68
+ const [host, port] = inspectRaw.split(':');
69
+ inspect = {
70
+ host,
71
+ port: isNaN(+port) ? undefined : +port,
72
+ };
73
+ }
74
+ }
51
75
  // Initial options to keep
52
76
  const { host, port, poll, open, verbose, watch, liveReload, hmr, headers, proxyConfig, servePath, ssl, sslCert, sslKey, prebundle, } = options;
53
77
  // Return all the normalized options
@@ -72,6 +96,6 @@ async function normalizeOptions(context, projectName, options) {
72
96
  sslKey,
73
97
  // Prebundling defaults to true but requires caching to function
74
98
  prebundle: cacheOptions.enabled && !optimization.scripts && prebundle,
99
+ inspect,
75
100
  };
76
101
  }
77
- exports.normalizeOptions = normalizeOptions;
@@ -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 { BuilderOutput } from '@angular-devkit/architect';
9
9
  /**
@@ -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
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -22,6 +22,11 @@ export interface Schema {
22
22
  * Host to listen on.
23
23
  */
24
24
  host?: string;
25
+ /**
26
+ * Activate debugging inspector. This option only has an effect when 'SSR' or 'SSG' are
27
+ * enabled.
28
+ */
29
+ inspect?: Inspect;
25
30
  /**
26
31
  * Whether to reload the page on change, using live-reload.
27
32
  */
@@ -73,6 +78,11 @@ export interface Schema {
73
78
  */
74
79
  watch?: boolean;
75
80
  }
81
+ /**
82
+ * Activate debugging inspector. This option only has an effect when 'SSR' or 'SSG' are
83
+ * enabled.
84
+ */
85
+ export type Inspect = boolean | string;
76
86
  /**
77
87
  * Enable and control the Vite-based development server's prebundling capabilities. To
78
88
  * enable prebundling, the Angular CLI cache must also be enabled.
@@ -79,6 +79,17 @@
79
79
  "type": "number",
80
80
  "description": "Enable and define the file watching poll time period in milliseconds."
81
81
  },
82
+ "inspect": {
83
+ "default": false,
84
+ "description": "Activate debugging inspector. This option only has an effect when 'SSR' or 'SSG' are enabled.",
85
+ "oneOf": [
86
+ {
87
+ "type": "string",
88
+ "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."
89
+ },
90
+ { "type": "boolean" }
91
+ ]
92
+ },
82
93
  "prebundle": {
83
94
  "description": "Enable and control the Vite-based development server's prebundling capabilities. To enable prebundling, the Angular CLI cache must also be enabled.",
84
95
  "default": true,
@@ -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 } from '@angular-devkit/architect';
9
9
  import type { Plugin } from 'esbuild';