@angular-devkit/build-angular 18.1.0-next.1 → 18.1.0-next.3

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 (218) hide show
  1. package/README.md +14 -14
  2. package/package.json +28 -20
  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 +1 -1
  12. package/src/builders/browser-esbuild/builder-status-warnings.d.ts +1 -1
  13. package/src/builders/browser-esbuild/builder-status-warnings.js +1 -1
  14. package/src/builders/browser-esbuild/index.d.ts +1 -1
  15. package/src/builders/browser-esbuild/index.js +1 -1
  16. package/src/builders/dev-server/builder.d.ts +1 -1
  17. package/src/builders/dev-server/builder.js +1 -1
  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 +1 -1
  21. package/src/builders/dev-server/options.js +1 -1
  22. package/src/builders/dev-server/webpack-server.d.ts +1 -1
  23. package/src/builders/dev-server/webpack-server.js +3 -2
  24. package/src/builders/extract-i18n/application-extraction.d.ts +1 -1
  25. package/src/builders/extract-i18n/application-extraction.js +1 -1
  26. package/src/builders/extract-i18n/builder.d.ts +1 -1
  27. package/src/builders/extract-i18n/builder.js +1 -1
  28. package/src/builders/extract-i18n/empty-loader.d.ts +1 -1
  29. package/src/builders/extract-i18n/empty-loader.js +1 -1
  30. package/src/builders/extract-i18n/index.d.ts +1 -1
  31. package/src/builders/extract-i18n/index.js +1 -1
  32. package/src/builders/extract-i18n/ivy-extract-loader.d.ts +1 -1
  33. package/src/builders/extract-i18n/ivy-extract-loader.js +1 -1
  34. package/src/builders/extract-i18n/options.d.ts +1 -1
  35. package/src/builders/extract-i18n/options.js +1 -1
  36. package/src/builders/extract-i18n/webpack-extraction.d.ts +1 -1
  37. package/src/builders/extract-i18n/webpack-extraction.js +1 -1
  38. package/src/builders/jest/index.d.ts +1 -1
  39. package/src/builders/jest/index.js +1 -1
  40. package/src/builders/jest/init-test-bed.mjs +5 -2
  41. package/src/builders/jest/jest-global.mjs +2 -2
  42. package/src/builders/jest/jest.config.mjs +1 -1
  43. package/src/builders/jest/options.d.ts +1 -1
  44. package/src/builders/jest/options.js +1 -1
  45. package/src/builders/karma/find-tests-plugin.d.ts +1 -1
  46. package/src/builders/karma/find-tests-plugin.js +1 -1
  47. package/src/builders/karma/index.d.ts +1 -1
  48. package/src/builders/karma/index.js +1 -1
  49. package/src/builders/ng-packagr/index.d.ts +1 -1
  50. package/src/builders/ng-packagr/index.js +1 -1
  51. package/src/builders/prerender/index.d.ts +1 -1
  52. package/src/builders/prerender/index.js +1 -1
  53. package/src/builders/prerender/render-worker.d.ts +1 -1
  54. package/src/builders/prerender/render-worker.js +1 -1
  55. package/src/builders/prerender/routes-extractor-worker.d.ts +1 -1
  56. package/src/builders/prerender/routes-extractor-worker.js +1 -1
  57. package/src/builders/protractor/index.d.ts +1 -1
  58. package/src/builders/protractor/index.js +1 -1
  59. package/src/builders/server/index.d.ts +1 -1
  60. package/src/builders/server/index.js +1 -1
  61. package/src/builders/server/platform-server-exports-loader.d.ts +1 -1
  62. package/src/builders/server/platform-server-exports-loader.js +1 -1
  63. package/src/builders/ssr-dev-server/index.d.ts +1 -1
  64. package/src/builders/ssr-dev-server/index.js +1 -1
  65. package/src/builders/ssr-dev-server/utils.d.ts +1 -1
  66. package/src/builders/ssr-dev-server/utils.js +1 -1
  67. package/src/builders/web-test-runner/builder-status-warnings.d.ts +1 -1
  68. package/src/builders/web-test-runner/builder-status-warnings.js +1 -1
  69. package/src/builders/web-test-runner/index.d.ts +1 -1
  70. package/src/builders/web-test-runner/index.js +1 -1
  71. package/src/builders/web-test-runner/jasmine_runner.js +1 -1
  72. package/src/builders/web-test-runner/options.d.ts +1 -1
  73. package/src/builders/web-test-runner/options.js +1 -1
  74. package/src/index.d.ts +1 -1
  75. package/src/index.js +1 -1
  76. package/src/tools/babel/babel-loader.d.ts +1 -1
  77. package/src/tools/babel/plugins/add-code-coverage.d.ts +14 -0
  78. package/src/tools/babel/plugins/add-code-coverage.js +44 -0
  79. package/src/tools/babel/plugins/types.d.ts +20 -0
  80. package/src/tools/babel/presets/application.d.ts +1 -1
  81. package/src/tools/babel/presets/application.js +2 -8
  82. package/src/tools/babel/webpack-loader.d.ts +1 -1
  83. package/src/tools/babel/webpack-loader.js +1 -1
  84. package/src/tools/webpack/configs/common.d.ts +1 -1
  85. package/src/tools/webpack/configs/common.js +1 -1
  86. package/src/tools/webpack/configs/dev-server.d.ts +1 -1
  87. package/src/tools/webpack/configs/dev-server.js +1 -1
  88. package/src/tools/webpack/configs/index.d.ts +1 -1
  89. package/src/tools/webpack/configs/index.js +1 -1
  90. package/src/tools/webpack/configs/styles.d.ts +1 -1
  91. package/src/tools/webpack/configs/styles.js +1 -1
  92. package/src/tools/webpack/plugins/any-component-style-budget-checker.d.ts +1 -1
  93. package/src/tools/webpack/plugins/any-component-style-budget-checker.js +1 -1
  94. package/src/tools/webpack/plugins/builder-watch-plugin.d.ts +1 -1
  95. package/src/tools/webpack/plugins/builder-watch-plugin.js +1 -1
  96. package/src/tools/webpack/plugins/common-js-usage-warn-plugin.d.ts +1 -1
  97. package/src/tools/webpack/plugins/common-js-usage-warn-plugin.js +1 -1
  98. package/src/tools/webpack/plugins/css-optimizer-plugin.d.ts +1 -1
  99. package/src/tools/webpack/plugins/css-optimizer-plugin.js +1 -1
  100. package/src/tools/webpack/plugins/dedupe-module-resolve-plugin.d.ts +1 -1
  101. package/src/tools/webpack/plugins/dedupe-module-resolve-plugin.js +1 -1
  102. package/src/tools/webpack/plugins/devtools-ignore-plugin.d.ts +1 -1
  103. package/src/tools/webpack/plugins/devtools-ignore-plugin.js +1 -1
  104. package/src/tools/webpack/plugins/esbuild-executor.d.ts +1 -1
  105. package/src/tools/webpack/plugins/esbuild-executor.js +1 -1
  106. package/src/tools/webpack/plugins/hmr/hmr-accept.d.ts +1 -1
  107. package/src/tools/webpack/plugins/hmr/hmr-accept.js +1 -1
  108. package/src/tools/webpack/plugins/hmr/hmr-loader.d.ts +1 -1
  109. package/src/tools/webpack/plugins/hmr/hmr-loader.js +1 -1
  110. package/src/tools/webpack/plugins/index-html-webpack-plugin.d.ts +1 -1
  111. package/src/tools/webpack/plugins/index-html-webpack-plugin.js +1 -1
  112. package/src/tools/webpack/plugins/index.d.ts +1 -1
  113. package/src/tools/webpack/plugins/index.js +1 -1
  114. package/src/tools/webpack/plugins/javascript-optimizer-plugin.d.ts +1 -1
  115. package/src/tools/webpack/plugins/javascript-optimizer-plugin.js +1 -1
  116. package/src/tools/webpack/plugins/javascript-optimizer-worker.d.ts +1 -1
  117. package/src/tools/webpack/plugins/javascript-optimizer-worker.js +1 -1
  118. package/src/tools/webpack/plugins/json-stats-plugin.d.ts +1 -1
  119. package/src/tools/webpack/plugins/json-stats-plugin.js +1 -1
  120. package/src/tools/webpack/plugins/karma/karma.d.ts +1 -1
  121. package/src/tools/webpack/plugins/karma/karma.js +1 -1
  122. package/src/tools/webpack/plugins/named-chunks-plugin.d.ts +1 -1
  123. package/src/tools/webpack/plugins/named-chunks-plugin.js +1 -1
  124. package/src/tools/webpack/plugins/occurrences-plugin.d.ts +1 -1
  125. package/src/tools/webpack/plugins/occurrences-plugin.js +1 -1
  126. package/src/tools/webpack/plugins/postcss-cli-resources.d.ts +1 -1
  127. package/src/tools/webpack/plugins/postcss-cli-resources.js +1 -1
  128. package/src/tools/webpack/plugins/progress-plugin.d.ts +1 -1
  129. package/src/tools/webpack/plugins/progress-plugin.js +1 -1
  130. package/src/tools/webpack/plugins/remove-hash-plugin.d.ts +1 -1
  131. package/src/tools/webpack/plugins/remove-hash-plugin.js +1 -1
  132. package/src/tools/webpack/plugins/scripts-webpack-plugin.d.ts +1 -1
  133. package/src/tools/webpack/plugins/scripts-webpack-plugin.js +1 -1
  134. package/src/tools/webpack/plugins/service-worker-plugin.d.ts +1 -1
  135. package/src/tools/webpack/plugins/service-worker-plugin.js +1 -1
  136. package/src/tools/webpack/plugins/styles-webpack-plugin.d.ts +1 -1
  137. package/src/tools/webpack/plugins/styles-webpack-plugin.js +1 -1
  138. package/src/tools/webpack/plugins/suppress-entry-chunks-webpack-plugin.d.ts +1 -1
  139. package/src/tools/webpack/plugins/suppress-entry-chunks-webpack-plugin.js +1 -1
  140. package/src/tools/webpack/plugins/transfer-size-plugin.d.ts +1 -1
  141. package/src/tools/webpack/plugins/transfer-size-plugin.js +1 -1
  142. package/src/tools/webpack/plugins/typescript.d.ts +1 -1
  143. package/src/tools/webpack/plugins/typescript.js +1 -1
  144. package/src/tools/webpack/plugins/watch-files-logs-plugin.d.ts +1 -1
  145. package/src/tools/webpack/plugins/watch-files-logs-plugin.js +1 -1
  146. package/src/tools/webpack/utils/async-chunks.d.ts +1 -1
  147. package/src/tools/webpack/utils/async-chunks.js +1 -1
  148. package/src/tools/webpack/utils/helpers.d.ts +1 -1
  149. package/src/tools/webpack/utils/helpers.js +1 -1
  150. package/src/tools/webpack/utils/stats.d.ts +1 -1
  151. package/src/tools/webpack/utils/stats.js +1 -1
  152. package/src/transforms.d.ts +1 -1
  153. package/src/transforms.js +1 -1
  154. package/src/utils/action-executor.d.ts +1 -1
  155. package/src/utils/action-executor.js +1 -1
  156. package/src/utils/build-options.d.ts +1 -1
  157. package/src/utils/build-options.js +1 -1
  158. package/src/utils/bundle-inline-options.d.ts +1 -1
  159. package/src/utils/bundle-inline-options.js +1 -1
  160. package/src/utils/color.d.ts +1 -1
  161. package/src/utils/color.js +1 -1
  162. package/src/utils/copy-assets.d.ts +1 -1
  163. package/src/utils/copy-assets.js +1 -1
  164. package/src/utils/default-progress.d.ts +1 -1
  165. package/src/utils/default-progress.js +1 -1
  166. package/src/utils/environment-options.d.ts +1 -1
  167. package/src/utils/environment-options.js +5 -2
  168. package/src/utils/error.d.ts +1 -1
  169. package/src/utils/error.js +1 -1
  170. package/src/utils/i18n-inlining.d.ts +1 -1
  171. package/src/utils/i18n-inlining.js +1 -1
  172. package/src/utils/i18n-webpack.d.ts +1 -1
  173. package/src/utils/i18n-webpack.js +1 -1
  174. package/src/utils/index.d.ts +1 -1
  175. package/src/utils/index.js +1 -1
  176. package/src/utils/load-esm.d.ts +1 -1
  177. package/src/utils/load-esm.js +1 -1
  178. package/src/utils/normalize-asset-patterns.d.ts +1 -1
  179. package/src/utils/normalize-asset-patterns.js +1 -1
  180. package/src/utils/normalize-builder-schema.d.ts +1 -1
  181. package/src/utils/normalize-builder-schema.js +1 -1
  182. package/src/utils/normalize-cache.d.ts +1 -1
  183. package/src/utils/normalize-cache.js +2 -2
  184. package/src/utils/normalize-file-replacements.d.ts +1 -1
  185. package/src/utils/normalize-file-replacements.js +1 -1
  186. package/src/utils/normalize-optimization.d.ts +1 -1
  187. package/src/utils/normalize-optimization.js +1 -1
  188. package/src/utils/normalize-polyfills.d.ts +1 -1
  189. package/src/utils/normalize-polyfills.js +1 -1
  190. package/src/utils/normalize-source-maps.d.ts +1 -1
  191. package/src/utils/normalize-source-maps.js +1 -1
  192. package/src/utils/output-paths.d.ts +1 -1
  193. package/src/utils/output-paths.js +1 -1
  194. package/src/utils/package-chunk-sort.d.ts +1 -1
  195. package/src/utils/package-chunk-sort.js +1 -1
  196. package/src/utils/package-version.d.ts +1 -1
  197. package/src/utils/package-version.js +1 -1
  198. package/src/utils/process-bundle.d.ts +1 -1
  199. package/src/utils/process-bundle.js +1 -1
  200. package/src/utils/read-tsconfig.d.ts +1 -1
  201. package/src/utils/read-tsconfig.js +1 -1
  202. package/src/utils/run-module-as-observable-fork.d.ts +1 -1
  203. package/src/utils/run-module-as-observable-fork.js +1 -1
  204. package/src/utils/run-module-worker.js +1 -1
  205. package/src/utils/spinner.d.ts +1 -1
  206. package/src/utils/spinner.js +1 -1
  207. package/src/utils/tailwind.d.ts +1 -1
  208. package/src/utils/tailwind.js +1 -1
  209. package/src/utils/test-files.d.ts +1 -1
  210. package/src/utils/test-files.js +1 -1
  211. package/src/utils/tty.d.ts +1 -1
  212. package/src/utils/tty.js +1 -1
  213. package/src/utils/url.d.ts +1 -1
  214. package/src/utils/url.js +1 -1
  215. package/src/utils/webpack-browser-config.d.ts +1 -1
  216. package/src/utils/webpack-browser-config.js +1 -1
  217. package/src/utils/webpack-diagnostics.d.ts +1 -1
  218. package/src/utils/webpack-diagnostics.js +1 -1
@@ -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 { Compiler } from 'webpack';
9
9
  export interface FindTestsPluginOptions {
@@ -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 { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
9
9
  import type { ConfigOptions } from 'karma';
@@ -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 { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
9
9
  import { Observable } from 'rxjs';
@@ -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 { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
9
9
  import { Schema } 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
  export interface RenderOptions {
9
9
  indexFile: string;
@@ -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
  export interface RoutesExtractorWorkerData {
9
9
  zonePackage: string;
@@ -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 { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
9
9
  import { json } from '@angular-devkit/core';
@@ -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 { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
9
9
  import { Observable } from 'rxjs';
@@ -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
  * This loader is needed to add additional exports and is a workaround for a Webpack bug that doesn't
@@ -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.default = default_1;
@@ -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 { json, logging } from '@angular-devkit/core';
@@ -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 { SpawnOptions } from 'child_process';
9
9
  import { Observable } from 'rxjs';
@@ -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 __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -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 WtrBuilderOptions } 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
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  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 { Schema } from './schema';
9
9
  declare const _default: import("../../../../architect/src/internal").Builder<Schema & import("../../../../core/src").JsonObject>;
@@ -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 __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -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
  import { getTestBed } from '@angular/core/testing';
@@ -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 { Schema as WtrBuilderSchema } from './schema';
9
9
  /**
@@ -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.normalizeOptions = normalizeOptions;
package/src/index.d.ts CHANGED
@@ -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 * from './transforms';
9
9
  export { AssetPattern, AssetPatternClass as AssetPatternObject, Budget, CrossOrigin, FileReplacement, OptimizationClass as OptimizationObject, OptimizationUnion, OutputHashing, Schema as BrowserBuilderOptions, SourceMapClass as SourceMapObject, SourceMapUnion, StylePreprocessorOptions, Type, } from './builders/browser/schema';
package/src/index.js CHANGED
@@ -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
  declare module 'babel-loader' {
@@ -0,0 +1,14 @@
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
+ import { PluginObj } from '@babel/core';
9
+ /**
10
+ * A babel plugin factory function for adding istanbul instrumentation.
11
+ *
12
+ * @returns A babel plugin object instance.
13
+ */
14
+ export default function (): PluginObj;
@@ -0,0 +1,44 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
10
+ return (mod && mod.__esModule) ? mod : { "default": mod };
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.default = default_1;
14
+ const core_1 = require("@babel/core");
15
+ const istanbul_lib_instrument_1 = require("istanbul-lib-instrument");
16
+ const node_assert_1 = __importDefault(require("node:assert"));
17
+ /**
18
+ * A babel plugin factory function for adding istanbul instrumentation.
19
+ *
20
+ * @returns A babel plugin object instance.
21
+ */
22
+ function default_1() {
23
+ const visitors = new WeakMap();
24
+ return {
25
+ visitor: {
26
+ Program: {
27
+ enter(path, state) {
28
+ const visitor = (0, istanbul_lib_instrument_1.programVisitor)(core_1.types, state.filename, {
29
+ // Babel returns a Converter object from the `convert-source-map` package
30
+ inputSourceMap: state.file.inputMap?.toObject(),
31
+ });
32
+ visitors.set(path, visitor);
33
+ visitor.enter(path);
34
+ },
35
+ exit(path) {
36
+ const visitor = visitors.get(path);
37
+ (0, node_assert_1.default)(visitor, 'Instrumentation visitor should always be present for program path.');
38
+ visitor.exit(path);
39
+ visitors.delete(path);
40
+ },
41
+ },
42
+ },
43
+ };
44
+ }
@@ -0,0 +1,20 @@
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
+
9
+ declare module 'istanbul-lib-instrument' {
10
+ export interface Visitor {
11
+ enter(path: import('@babel/core').NodePath<types.Program>): void;
12
+ exit(path: import('@babel/core').NodePath<types.Program>): void;
13
+ }
14
+
15
+ export function programVisitor(
16
+ types: typeof import('@babel/core').types,
17
+ filePath?: string,
18
+ options?: { inputSourceMap?: object | null },
19
+ ): Visitor;
20
+ }
@@ -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 { ɵParsedTranslation } from '@angular/localize';
9
9
  import type { makeEs2015TranslatePlugin, makeLocalePlugin } from '@angular/localize/tools';
@@ -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 __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -158,13 +158,7 @@ function default_1(api, options) {
158
158
  ]);
159
159
  }
160
160
  if (options.instrumentCode) {
161
- plugins.push([
162
- require('babel-plugin-istanbul').default,
163
- {
164
- inputSourceMap: options.instrumentCode.inputSourceMap ?? false,
165
- cwd: options.instrumentCode.includedBasePath,
166
- },
167
- ]);
161
+ plugins.push(require('../plugins/add-code-coverage').default);
168
162
  }
169
163
  if (needRuntimeTransform) {
170
164
  // Babel equivalent to TypeScript's `importHelpers` option
@@ -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 { ApplicationPresetOptions } from './presets/application';
9
9
  interface AngularCustomOptions extends Omit<ApplicationPresetOptions, 'instrumentCode'> {
@@ -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
  const babel_loader_1 = require("babel-loader");
@@ -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 { Configuration } from 'webpack';
9
9
  import { WebpackConfigOptions } from '../../../utils/build-options';
@@ -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 { logging } from '@angular-devkit/core';
9
9
  import { Configuration } from 'webpack';
@@ -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
  export * from './common';
9
9
  export * from './dev-server';
@@ -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 type { Configuration } from 'webpack';
9
9
  import { WebpackConfigOptions } from '../../../utils/build-options';
@@ -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 { BudgetEntry } from '@angular/build/private';
9
9
  import { Compiler } from 'webpack';
@@ -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 { Compiler } from 'webpack';
9
9
  export type BuilderWatcherCallback = (events: Array<{
@@ -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.BuilderWatchPlugin = 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 { Compiler } from 'webpack';
9
9
  export interface CommonJsUsageWarnPluginOptions {
@@ -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.CommonJsUsageWarnPlugin = 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 type { Compiler } from 'webpack';
9
9
  export interface CssOptimizerPluginOptions {
@@ -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.CssOptimizerPlugin = void 0;