@angular-devkit/build-angular 19.1.6 → 19.1.8

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 (38) hide show
  1. package/package.json +7 -7
  2. package/src/builders/app-shell/index.js +2 -2
  3. package/src/builders/browser/index.js +2 -2
  4. package/src/builders/dev-server/builder.js +0 -3
  5. package/src/builders/dev-server/webpack-server.js +2 -2
  6. package/src/builders/extract-i18n/ivy-extract-loader.js +1 -1
  7. package/src/builders/karma/application_builder.js +26 -9
  8. package/src/builders/karma/browser_builder.js +1 -1
  9. package/src/builders/karma/find-tests-plugin.js +2 -2
  10. package/src/builders/karma/find-tests.js +10 -10
  11. package/src/builders/karma/index.js +3 -3
  12. package/src/builders/prerender/index.js +2 -2
  13. package/src/builders/protractor/index.js +3 -3
  14. package/src/builders/ssr-dev-server/index.js +5 -5
  15. package/src/builders/ssr-dev-server/utils.d.ts +1 -1
  16. package/src/builders/ssr-dev-server/utils.js +5 -5
  17. package/src/tools/webpack/configs/common.js +1 -1
  18. package/src/tools/webpack/configs/dev-server.js +15 -15
  19. package/src/tools/webpack/plugins/any-component-style-budget-checker.js +1 -1
  20. package/src/tools/webpack/plugins/common-js-usage-warn-plugin.js +2 -2
  21. package/src/tools/webpack/plugins/hmr/hmr-loader.js +2 -2
  22. package/src/tools/webpack/plugins/index-html-webpack-plugin.js +4 -4
  23. package/src/tools/webpack/plugins/postcss-cli-resources.js +2 -2
  24. package/src/tools/webpack/plugins/scripts-webpack-plugin.js +1 -1
  25. package/src/tools/webpack/plugins/styles-webpack-plugin.js +3 -3
  26. package/src/tools/webpack/plugins/transfer-size-plugin.js +3 -3
  27. package/src/tools/webpack/utils/helpers.js +3 -3
  28. package/src/utils/error.js +2 -2
  29. package/src/utils/i18n-inlining.js +2 -2
  30. package/src/utils/normalize-asset-patterns.js +3 -3
  31. package/src/utils/normalize-cache.js +1 -1
  32. package/src/utils/normalize-file-replacements.js +4 -4
  33. package/src/utils/normalize-polyfills.js +4 -4
  34. package/src/utils/output-paths.js +5 -5
  35. package/src/utils/process-bundle.js +4 -4
  36. package/src/utils/read-tsconfig.js +1 -1
  37. package/src/utils/run-module-as-observable-fork.js +4 -4
  38. package/src/utils/webpack-browser-config.js +1 -1
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "19.1.6",
3
+ "version": "19.1.8",
4
4
  "description": "Angular Webpack Build Facade",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
7
7
  "builders": "builders.json",
8
8
  "dependencies": {
9
9
  "@ampproject/remapping": "2.3.0",
10
- "@angular-devkit/architect": "0.1901.6",
11
- "@angular-devkit/build-webpack": "0.1901.6",
12
- "@angular-devkit/core": "19.1.6",
13
- "@angular/build": "19.1.6",
10
+ "@angular-devkit/architect": "0.1901.8",
11
+ "@angular-devkit/build-webpack": "0.1901.8",
12
+ "@angular-devkit/core": "19.1.8",
13
+ "@angular/build": "19.1.8",
14
14
  "@babel/core": "7.26.0",
15
15
  "@babel/generator": "7.26.3",
16
16
  "@babel/helper-annotate-as-pure": "7.25.9",
@@ -21,7 +21,7 @@
21
21
  "@babel/preset-env": "7.26.0",
22
22
  "@babel/runtime": "7.26.0",
23
23
  "@discoveryjs/json-ext": "0.6.3",
24
- "@ngtools/webpack": "19.1.6",
24
+ "@ngtools/webpack": "19.1.8",
25
25
  "@vitejs/plugin-basic-ssl": "1.2.0",
26
26
  "ansi-colors": "4.1.3",
27
27
  "autoprefixer": "10.4.20",
@@ -70,7 +70,7 @@
70
70
  "@angular/localize": "^19.0.0",
71
71
  "@angular/platform-server": "^19.0.0",
72
72
  "@angular/service-worker": "^19.0.0",
73
- "@angular/ssr": "^19.1.6",
73
+ "@angular/ssr": "^19.1.8",
74
74
  "@web/test-runner": "^0.19.0",
75
75
  "browser-sync": "^3.0.2",
76
76
  "jest": "^29.5.0",
@@ -45,8 +45,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
46
  const private_1 = require("@angular/build/private");
47
47
  const architect_1 = require("@angular-devkit/architect");
48
- const fs = __importStar(require("fs"));
49
- const path = __importStar(require("path"));
48
+ const fs = __importStar(require("node:fs"));
49
+ const path = __importStar(require("node:path"));
50
50
  const piscina_1 = __importDefault(require("piscina"));
51
51
  const utils_1 = require("../../utils");
52
52
  const error_1 = require("../../utils/error");
@@ -46,8 +46,8 @@ const private_1 = require("@angular/build/private");
46
46
  const architect_1 = require("@angular-devkit/architect");
47
47
  const build_webpack_1 = require("@angular-devkit/build-webpack");
48
48
  const webpack_1 = require("@ngtools/webpack");
49
- const fs = __importStar(require("fs"));
50
- const path = __importStar(require("path"));
49
+ const fs = __importStar(require("node:fs"));
50
+ const path = __importStar(require("node:path"));
51
51
  const rxjs_1 = require("rxjs");
52
52
  const configs_1 = require("../../tools/webpack/configs");
53
53
  const async_chunks_1 = require("../../tools/webpack/utils/async-chunks");
@@ -73,9 +73,6 @@ function execute(options, context, transforms = {}, extensions) {
73
73
  if (transforms?.logging || transforms?.webpackConfiguration) {
74
74
  throw new Error(`The "application" and "browser-esbuild" builders do not support Webpack transforms.`);
75
75
  }
76
- if (options.allowedHosts?.length) {
77
- context.logger.warn(`The "allowedHosts" option will not be used because it is not supported by the "${builderName}" builder.`);
78
- }
79
76
  if (options.publicHost) {
80
77
  context.logger.warn(`The "publicHost" option will not be used because it is not supported by the "${builderName}" builder.`);
81
78
  }
@@ -44,9 +44,9 @@ exports.serveWebpackBrowser = serveWebpackBrowser;
44
44
  const private_1 = require("@angular/build/private");
45
45
  const build_webpack_1 = require("@angular-devkit/build-webpack");
46
46
  const core_1 = require("@angular-devkit/core");
47
- const path = __importStar(require("path"));
47
+ const path = __importStar(require("node:path"));
48
+ const url = __importStar(require("node:url"));
48
49
  const rxjs_1 = require("rxjs");
49
- const url = __importStar(require("url"));
50
50
  const configs_1 = require("../../tools/webpack/configs");
51
51
  const index_html_webpack_plugin_1 = require("../../tools/webpack/plugins/index-html-webpack-plugin");
52
52
  const service_worker_plugin_1 = require("../../tools/webpack/plugins/service-worker-plugin");
@@ -41,7 +41,7 @@ var __importStar = (this && this.__importStar) || (function () {
41
41
  })();
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.default = localizeExtractLoader;
44
- const nodePath = __importStar(require("path"));
44
+ const nodePath = __importStar(require("node:path"));
45
45
  const load_esm_1 = require("../../utils/load-esm");
46
46
  function localizeExtractLoader(content, map) {
47
47
  // This loader is not cacheable due to how message extraction works.
@@ -47,11 +47,12 @@ exports.execute = execute;
47
47
  exports.writeTestFiles = writeTestFiles;
48
48
  const build_1 = require("@angular/build");
49
49
  const private_1 = require("@angular/build/private");
50
- const crypto_1 = require("crypto");
51
50
  const fast_glob_1 = __importDefault(require("fast-glob"));
52
- const fs = __importStar(require("fs/promises"));
53
- const path = __importStar(require("path"));
51
+ const node_crypto_1 = require("node:crypto");
52
+ const fs = __importStar(require("node:fs/promises"));
53
+ const path = __importStar(require("node:path"));
54
54
  const rxjs_1 = require("rxjs");
55
+ const utils_1 = require("../../utils");
55
56
  const schema_1 = require("../browser-esbuild/schema");
56
57
  const find_tests_1 = require("./find-tests");
57
58
  class ApplicationBuildError extends Error {
@@ -275,7 +276,7 @@ async function initializeApplication(options, context, karmaOptions, transforms
275
276
  if (transforms.webpackConfiguration) {
276
277
  context.logger.warn(`This build is using the application builder but transforms.webpackConfiguration was provided. The transform will be ignored.`);
277
278
  }
278
- const outputPath = path.join(context.workspaceRoot, 'dist/test-out', (0, crypto_1.randomUUID)());
279
+ const outputPath = path.join(context.workspaceRoot, 'dist/test-out', (0, node_crypto_1.randomUUID)());
279
280
  const projectSourceRoot = await getProjectSourceRoot(context);
280
281
  const [karma, entryPoints] = await Promise.all([
281
282
  Promise.resolve().then(() => __importStar(require('karma'))),
@@ -305,17 +306,24 @@ async function initializeApplication(options, context, karmaOptions, transforms
305
306
  index: false,
306
307
  outputHashing: schema_1.OutputHashing.None,
307
308
  optimization: false,
308
- sourceMap: {
309
- scripts: true,
310
- styles: true,
311
- vendor: true,
312
- },
309
+ sourceMap: options.codeCoverage
310
+ ? {
311
+ scripts: true,
312
+ styles: true,
313
+ vendor: true,
314
+ }
315
+ : options.sourceMap,
313
316
  instrumentForCoverage,
314
317
  styles: options.styles,
318
+ scripts: options.scripts,
315
319
  polyfills,
316
320
  webWorkerTsConfig: options.webWorkerTsConfig,
317
321
  watch: options.watch ?? !karmaOptions.singleRun,
318
322
  stylePreprocessorOptions: options.stylePreprocessorOptions,
323
+ inlineStyleLanguage: options.inlineStyleLanguage,
324
+ fileReplacements: options.fileReplacements
325
+ ? (0, utils_1.normalizeFileReplacements)(options.fileReplacements, './')
326
+ : undefined,
319
327
  };
320
328
  // Build tests with `application` builder, using test files as entry points.
321
329
  const [buildOutput, buildIterator] = await first((0, private_1.buildApplicationInternal)(buildOptions, context), { cancel: !buildOptions.watch });
@@ -344,6 +352,15 @@ async function initializeApplication(options, context, karmaOptions, transforms
344
352
  watched: false,
345
353
  };
346
354
  karmaOptions.files ??= [];
355
+ if (options.scripts?.length) {
356
+ // This should be more granular to support named bundles.
357
+ // However, it replicates the behavior of the Karma Webpack-based builder.
358
+ karmaOptions.files.push({
359
+ pattern: `${outputPath}/scripts.js`,
360
+ watched: false,
361
+ type: 'js',
362
+ });
363
+ }
347
364
  karmaOptions.files.push(
348
365
  // Serve global setup script.
349
366
  { pattern: `${outputPath}/${mainName}.js`, type: 'module', watched: false },
@@ -42,7 +42,7 @@ var __importStar = (this && this.__importStar) || (function () {
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.execute = execute;
44
44
  const private_1 = require("@angular/build/private");
45
- const path = __importStar(require("path"));
45
+ const path = __importStar(require("node:path"));
46
46
  const rxjs_1 = require("rxjs");
47
47
  const configs_1 = require("../../tools/webpack/configs");
48
48
  const webpack_browser_config_1 = require("../../utils/webpack-browser-config");
@@ -11,8 +11,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.FindTestsPlugin = void 0;
14
- const assert_1 = __importDefault(require("assert"));
15
14
  const mini_css_extract_plugin_1 = require("mini-css-extract-plugin");
15
+ const node_assert_1 = __importDefault(require("node:assert"));
16
16
  const find_tests_1 = require("./find-tests");
17
17
  /**
18
18
  * The name of the plugin provided to Webpack when tapping Webpack compiler hooks.
@@ -42,7 +42,7 @@ class FindTestsPlugin {
42
42
  entrypoint.import = [...originalImport, ...specFiles];
43
43
  }
44
44
  else {
45
- (0, assert_1.default)(this.compilation, 'Compilation cannot be undefined.');
45
+ (0, node_assert_1.default)(this.compilation, 'Compilation cannot be undefined.');
46
46
  this.compilation
47
47
  .getLogger(mini_css_extract_plugin_1.pluginName)
48
48
  .error(`Specified patterns: "${include.join(', ')}" did not match any spec files.`);
@@ -43,8 +43,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.findTests = findTests;
44
44
  exports.getTestEntrypoints = getTestEntrypoints;
45
45
  const fast_glob_1 = __importStar(require("fast-glob"));
46
- const fs_1 = require("fs");
47
- const path_1 = require("path");
46
+ const node_fs_1 = require("node:fs");
47
+ const node_path_1 = require("node:path");
48
48
  /* Go through all patterns and find unique list of files */
49
49
  async function findTests(include, exclude, workspaceRoot, projectSourceRoot) {
50
50
  const matchingTestsPromises = include.map((pattern) => findMatchingTests(pattern, exclude, workspaceRoot, projectSourceRoot));
@@ -61,7 +61,7 @@ function getTestEntrypoints(testFiles, { projectSourceRoot, workspaceRoot }) {
61
61
  .replace(/^[./\\]+/, '')
62
62
  // Replace any path separators with dashes.
63
63
  .replace(/[/\\]/g, '-');
64
- const baseName = `spec-${(0, path_1.basename)(relativePath, (0, path_1.extname)(relativePath))}`;
64
+ const baseName = `spec-${(0, node_path_1.basename)(relativePath, (0, node_path_1.extname)(relativePath))}`;
65
65
  let uniqueName = baseName;
66
66
  let suffix = 2;
67
67
  while (seen.has(uniqueName)) {
@@ -91,26 +91,26 @@ function removeRoots(path, roots) {
91
91
  return path.substring(root.length);
92
92
  }
93
93
  }
94
- return (0, path_1.basename)(path);
94
+ return (0, node_path_1.basename)(path);
95
95
  }
96
96
  async function findMatchingTests(pattern, ignore, workspaceRoot, projectSourceRoot) {
97
97
  // normalize pattern, glob lib only accepts forward slashes
98
98
  let normalizedPattern = normalizePath(pattern);
99
99
  normalizedPattern = removeLeadingSlash(normalizedPattern);
100
- const relativeProjectRoot = normalizePath((0, path_1.relative)(workspaceRoot, projectSourceRoot) + '/');
100
+ const relativeProjectRoot = normalizePath((0, node_path_1.relative)(workspaceRoot, projectSourceRoot) + '/');
101
101
  // remove relativeProjectRoot to support relative paths from root
102
102
  // such paths are easy to get when running scripts via IDEs
103
103
  normalizedPattern = removeRelativeRoot(normalizedPattern, relativeProjectRoot);
104
104
  // special logic when pattern does not look like a glob
105
105
  if (!(0, fast_glob_1.isDynamicPattern)(normalizedPattern)) {
106
- if (await isDirectory((0, path_1.join)(projectSourceRoot, normalizedPattern))) {
106
+ if (await isDirectory((0, node_path_1.join)(projectSourceRoot, normalizedPattern))) {
107
107
  normalizedPattern = `${normalizedPattern}/**/*.spec.@(ts|tsx)`;
108
108
  }
109
109
  else {
110
110
  // see if matching spec file exists
111
- const fileExt = (0, path_1.extname)(normalizedPattern);
111
+ const fileExt = (0, node_path_1.extname)(normalizedPattern);
112
112
  // Replace extension to `.spec.ext`. Example: `src/app/app.component.ts`-> `src/app/app.component.spec.ts`
113
- const potentialSpec = (0, path_1.join)(projectSourceRoot, (0, path_1.dirname)(normalizedPattern), `${(0, path_1.basename)(normalizedPattern, fileExt)}.spec${fileExt}`);
113
+ const potentialSpec = (0, node_path_1.join)(projectSourceRoot, (0, node_path_1.dirname)(normalizedPattern), `${(0, node_path_1.basename)(normalizedPattern, fileExt)}.spec${fileExt}`);
114
114
  if (await exists(potentialSpec)) {
115
115
  return [potentialSpec];
116
116
  }
@@ -126,7 +126,7 @@ async function findMatchingTests(pattern, ignore, workspaceRoot, projectSourceRo
126
126
  }
127
127
  async function isDirectory(path) {
128
128
  try {
129
- const stats = await fs_1.promises.stat(path);
129
+ const stats = await node_fs_1.promises.stat(path);
130
130
  return stats.isDirectory();
131
131
  }
132
132
  catch {
@@ -135,7 +135,7 @@ async function isDirectory(path) {
135
135
  }
136
136
  async function exists(path) {
137
137
  try {
138
- await fs_1.promises.access(path, fs_1.constants.F_OK);
138
+ await node_fs_1.promises.access(path, node_fs_1.constants.F_OK);
139
139
  return true;
140
140
  }
141
141
  catch {
@@ -44,8 +44,8 @@ exports.execute = execute;
44
44
  const private_1 = require("@angular/build/private");
45
45
  const architect_1 = require("@angular-devkit/architect");
46
46
  const core_1 = require("@angular-devkit/core");
47
- const module_1 = require("module");
48
- const path = __importStar(require("path"));
47
+ const node_module_1 = require("node:module");
48
+ const path = __importStar(require("node:path"));
49
49
  const rxjs_1 = require("rxjs");
50
50
  const schema_1 = require("./schema");
51
51
  /**
@@ -101,7 +101,7 @@ function getBuiltInKarmaConfig(workspaceRoot, projectName, useEsbuild) {
101
101
  if (/[A-Z]/.test(coverageFolderName)) {
102
102
  coverageFolderName = core_1.strings.dasherize(coverageFolderName);
103
103
  }
104
- const workspaceRootRequire = (0, module_1.createRequire)(workspaceRoot + '/');
104
+ const workspaceRootRequire = (0, node_module_1.createRequire)(workspaceRoot + '/');
105
105
  // Any changes to the config here need to be synced to: packages/schematics/angular/config/files/karma.conf.js.template
106
106
  return {
107
107
  basePath: '',
@@ -46,10 +46,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.execute = execute;
47
47
  const private_1 = require("@angular/build/private");
48
48
  const architect_1 = require("@angular-devkit/architect");
49
- const fs = __importStar(require("fs"));
49
+ const fs = __importStar(require("node:fs"));
50
50
  const promises_1 = require("node:fs/promises");
51
+ const path = __importStar(require("node:path"));
51
52
  const ora_1 = __importDefault(require("ora"));
52
- const path = __importStar(require("path"));
53
53
  const piscina_1 = __importDefault(require("piscina"));
54
54
  const utils_1 = require("../../utils");
55
55
  const environment_options_1 = require("../../utils/environment-options");
@@ -43,8 +43,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.execute = execute;
44
44
  const architect_1 = require("@angular-devkit/architect");
45
45
  const core_1 = require("@angular-devkit/core");
46
- const path_1 = require("path");
47
- const url = __importStar(require("url"));
46
+ const node_path_1 = require("node:path");
47
+ const url = __importStar(require("node:url"));
48
48
  const utils_1 = require("../../utils");
49
49
  const error_1 = require("../../utils/error");
50
50
  function runProtractor(root, options) {
@@ -61,7 +61,7 @@ function runProtractor(root, options) {
61
61
  // process. To work around this we run it in a subprocess.
62
62
  // https://github.com/angular/protractor/issues/4160
63
63
  return (0, utils_1.runModuleAsObservableFork)(root, 'protractor/built/launcher', 'init', [
64
- (0, path_1.resolve)(root, options.protractorConfig),
64
+ (0, node_path_1.resolve)(root, options.protractorConfig),
65
65
  additionalProtractorConfig,
66
66
  ]).toPromise();
67
67
  }
@@ -45,9 +45,9 @@ exports.log = log;
45
45
  const private_1 = require("@angular/build/private");
46
46
  const architect_1 = require("@angular-devkit/architect");
47
47
  const core_1 = require("@angular-devkit/core");
48
- const path_1 = require("path");
48
+ const node_path_1 = require("node:path");
49
+ const url = __importStar(require("node:url"));
49
50
  const rxjs_1 = require("rxjs");
50
- const url = __importStar(require("url"));
51
51
  const utils_1 = require("./utils");
52
52
  /** Log messages to ignore and not rely to the logger */
53
53
  const IGNORED_STDOUT_MESSAGES = [
@@ -166,7 +166,7 @@ function log({ stderr, stdout }, logger) {
166
166
  }
167
167
  function startNodeServer(serverOutput, port, logger, inspectMode = false) {
168
168
  const outputPath = serverOutput.outputPath;
169
- const path = (0, path_1.join)(outputPath, 'main.js');
169
+ const path = (0, node_path_1.join)(outputPath, 'main.js');
170
170
  const env = { ...process.env, PORT: '' + port };
171
171
  const args = ['--enable-source-maps', `"${path}"`];
172
172
  if (inspectMode) {
@@ -290,8 +290,8 @@ function getSslConfig(root, options) {
290
290
  const { ssl, sslCert, sslKey } = options;
291
291
  if (ssl && sslCert && sslKey) {
292
292
  return {
293
- key: (0, path_1.resolve)(root, sslKey),
294
- cert: (0, path_1.resolve)(root, sslCert),
293
+ key: (0, node_path_1.resolve)(root, sslKey),
294
+ cert: (0, node_path_1.resolve)(root, sslCert),
295
295
  };
296
296
  }
297
297
  return ssl;
@@ -5,7 +5,7 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
- import { SpawnOptions } from 'child_process';
8
+ import { SpawnOptions } from 'node:child_process';
9
9
  import { Observable } from 'rxjs';
10
10
  export declare function getAvailablePort(): Promise<number>;
11
11
  export declare function spawnAsObservable(command: string, args?: string[], options?: SpawnOptions): Observable<{
@@ -13,13 +13,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.getAvailablePort = getAvailablePort;
14
14
  exports.spawnAsObservable = spawnAsObservable;
15
15
  exports.waitUntilServerIsListening = waitUntilServerIsListening;
16
- const child_process_1 = require("child_process");
17
- const net_1 = require("net");
16
+ const node_child_process_1 = require("node:child_process");
17
+ const node_net_1 = require("node:net");
18
18
  const rxjs_1 = require("rxjs");
19
19
  const tree_kill_1 = __importDefault(require("tree-kill"));
20
20
  function getAvailablePort() {
21
21
  return new Promise((resolve, reject) => {
22
- const server = (0, net_1.createServer)();
22
+ const server = (0, node_net_1.createServer)();
23
23
  server
24
24
  .unref()
25
25
  .on('error', reject)
@@ -31,7 +31,7 @@ function getAvailablePort() {
31
31
  }
32
32
  function spawnAsObservable(command, args = [], options = {}) {
33
33
  return new rxjs_1.Observable((obs) => {
34
- const proc = (0, child_process_1.spawn)(command, args, options);
34
+ const proc = (0, node_child_process_1.spawn)(command, args, options);
35
35
  if (proc.stdout) {
36
36
  proc.stdout.on('data', (data) => obs.next({ stdout: data.toString() }));
37
37
  }
@@ -56,7 +56,7 @@ function spawnAsObservable(command, args = [], options = {}) {
56
56
  function waitUntilServerIsListening(port, host) {
57
57
  const allowedErrorCodes = ['ECONNREFUSED', 'ECONNRESET'];
58
58
  return new rxjs_1.Observable((obs) => {
59
- const client = (0, net_1.createConnection)({ host, port }, () => {
59
+ const client = (0, node_net_1.createConnection)({ host, port }, () => {
60
60
  obs.next(undefined);
61
61
  obs.complete();
62
62
  }).on('error', (err) => obs.error(err));
@@ -46,7 +46,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.getCommonConfig = getCommonConfig;
47
47
  const webpack_1 = require("@ngtools/webpack");
48
48
  const copy_webpack_plugin_1 = __importDefault(require("copy-webpack-plugin"));
49
- const path = __importStar(require("path"));
49
+ const path = __importStar(require("node:path"));
50
50
  const webpack_2 = require("webpack");
51
51
  const webpack_subresource_integrity_1 = require("webpack-subresource-integrity");
52
52
  const environment_options_1 = require("../../../utils/environment-options");
@@ -43,9 +43,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.getDevServerConfig = getDevServerConfig;
44
44
  exports.buildServePath = buildServePath;
45
45
  const core_1 = require("@angular-devkit/core");
46
- const fs_1 = require("fs");
47
- const path_1 = require("path");
48
- const url_1 = require("url");
46
+ const node_fs_1 = require("node:fs");
47
+ const node_path_1 = require("node:path");
48
+ const node_url_1 = require("node:url");
49
49
  const error_1 = require("../../../utils/error");
50
50
  const load_esm_1 = require("../../../utils/load-esm");
51
51
  const webpack_browser_config_1 = require("../../../utils/webpack-browser-config");
@@ -57,7 +57,7 @@ async function getDevServerConfig(wco) {
57
57
  if (hmr) {
58
58
  extraRules.push({
59
59
  loader: hmr_loader_1.HmrLoader,
60
- include: [(0, path_1.resolve)(wco.root, main)],
60
+ include: [(0, node_path_1.resolve)(wco.root, main)],
61
61
  });
62
62
  }
63
63
  const extraPlugins = [];
@@ -87,7 +87,7 @@ async function getDevServerConfig(wco) {
87
87
  ...headers,
88
88
  },
89
89
  historyApiFallback: !!index && {
90
- index: path_1.posix.join(servePath, (0, webpack_browser_config_1.getIndexOutputFile)(index)),
90
+ index: node_path_1.posix.join(servePath, (0, webpack_browser_config_1.getIndexOutputFile)(index)),
91
91
  disableDotRule: true,
92
92
  htmlAcceptHeaders: ['text/html', 'application/xhtml+xml'],
93
93
  rewrites: [
@@ -153,8 +153,8 @@ function getServerConfig(root, options) {
153
153
  type: 'https',
154
154
  options: sslCert && sslKey
155
155
  ? {
156
- key: (0, path_1.resolve)(root, sslKey),
157
- cert: (0, path_1.resolve)(root, sslCert),
156
+ key: (0, node_path_1.resolve)(root, sslKey),
157
+ cert: (0, node_path_1.resolve)(root, sslCert),
158
158
  }
159
159
  : undefined,
160
160
  };
@@ -167,14 +167,14 @@ async function addProxyConfig(root, proxyConfig) {
167
167
  if (!proxyConfig) {
168
168
  return undefined;
169
169
  }
170
- const proxyPath = (0, path_1.resolve)(root, proxyConfig);
171
- if (!(0, fs_1.existsSync)(proxyPath)) {
170
+ const proxyPath = (0, node_path_1.resolve)(root, proxyConfig);
171
+ if (!(0, node_fs_1.existsSync)(proxyPath)) {
172
172
  throw new Error(`Proxy configuration file ${proxyPath} does not exist.`);
173
173
  }
174
174
  let proxyConfiguration;
175
- switch ((0, path_1.extname)(proxyPath)) {
175
+ switch ((0, node_path_1.extname)(proxyPath)) {
176
176
  case '.json': {
177
- const content = await fs_1.promises.readFile(proxyPath, 'utf-8');
177
+ const content = await node_fs_1.promises.readFile(proxyPath, 'utf-8');
178
178
  const { parse, printParseErrorCode } = await Promise.resolve().then(() => __importStar(require('jsonc-parser')));
179
179
  const parseErrors = [];
180
180
  proxyConfiguration = parse(content, parseErrors, { allowTrailingComma: true });
@@ -192,7 +192,7 @@ async function addProxyConfig(root, proxyConfig) {
192
192
  // Load the ESM configuration file using the TypeScript dynamic import workaround.
193
193
  // Once TypeScript provides support for keeping the dynamic import this workaround can be
194
194
  // changed to a direct dynamic import.
195
- proxyConfiguration = (await (0, load_esm_1.loadEsmModule)((0, url_1.pathToFileURL)(proxyPath))).default;
195
+ proxyConfiguration = (await (0, load_esm_1.loadEsmModule)((0, node_url_1.pathToFileURL)(proxyPath))).default;
196
196
  break;
197
197
  case '.cjs':
198
198
  proxyConfiguration = require(proxyPath);
@@ -211,7 +211,7 @@ async function addProxyConfig(root, proxyConfig) {
211
211
  // Load the ESM configuration file using the TypeScript dynamic import workaround.
212
212
  // Once TypeScript provides support for keeping the dynamic import this workaround can be
213
213
  // changed to a direct dynamic import.
214
- proxyConfiguration = (await (0, load_esm_1.loadEsmModule)((0, url_1.pathToFileURL)(proxyPath))).default;
214
+ proxyConfiguration = (await (0, load_esm_1.loadEsmModule)((0, node_url_1.pathToFileURL)(proxyPath))).default;
215
215
  }
216
216
  }
217
217
  return normalizeProxyConfiguration(proxyConfiguration);
@@ -288,7 +288,7 @@ function getWebSocketSettings(options, servePath) {
288
288
  client: undefined,
289
289
  };
290
290
  }
291
- const webSocketPath = path_1.posix.join(servePath, 'ng-cli-ws');
291
+ const webSocketPath = node_path_1.posix.join(servePath, 'ng-cli-ws');
292
292
  return {
293
293
  webSocketServer: {
294
294
  options: {
@@ -310,7 +310,7 @@ function getPublicHostOptions(options, webSocketPath) {
310
310
  let publicHost = options.publicHost;
311
311
  if (publicHost) {
312
312
  const hostWithProtocol = !/^\w+:\/\//.test(publicHost) ? `https://${publicHost}` : publicHost;
313
- publicHost = new url_1.URL(hostWithProtocol).host;
313
+ publicHost = new node_url_1.URL(hostWithProtocol).host;
314
314
  }
315
315
  return `auto://${publicHost || '0.0.0.0:0'}${webSocketPath}`;
316
316
  }
@@ -42,7 +42,7 @@ var __importStar = (this && this.__importStar) || (function () {
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.AnyComponentStyleBudgetChecker = void 0;
44
44
  const private_1 = require("@angular/build/private");
45
- const path = __importStar(require("path"));
45
+ const path = __importStar(require("node:path"));
46
46
  const webpack_1 = require("webpack");
47
47
  const webpack_diagnostics_1 = require("../../../utils/webpack-diagnostics");
48
48
  const PLUGIN_NAME = 'AnyComponentStyleBudgetChecker';
@@ -8,7 +8,7 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.CommonJsUsageWarnPlugin = void 0;
11
- const path_1 = require("path");
11
+ const node_path_1 = require("node:path");
12
12
  const webpack_diagnostics_1 = require("../../../utils/webpack-diagnostics");
13
13
  // Webpack doesn't export these so the deep imports can potentially break.
14
14
  const AMDDefineDependency = require('webpack/lib/dependencies/AMDDefineDependency');
@@ -38,7 +38,7 @@ class CommonJsUsageWarnPlugin {
38
38
  const { dependencies, rawRequest } = module;
39
39
  if (!rawRequest ||
40
40
  rawRequest.startsWith('.') ||
41
- (0, path_1.isAbsolute)(rawRequest) ||
41
+ (0, node_path_1.isAbsolute)(rawRequest) ||
42
42
  this.allowedDependencies.has(rawRequest) ||
43
43
  this.allowedDependencies.has(this.rawRequestToPackageName(rawRequest)) ||
44
44
  rawRequest.startsWith('@angular/common/locales/')) {
@@ -9,9 +9,9 @@
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.HmrLoader = void 0;
11
11
  exports.default = localizeExtractLoader;
12
- const path_1 = require("path");
12
+ const node_path_1 = require("node:path");
13
13
  exports.HmrLoader = __filename;
14
- const hmrAcceptPath = (0, path_1.join)(__dirname, './hmr-accept.js').replace(/\\/g, '/');
14
+ const hmrAcceptPath = (0, node_path_1.join)(__dirname, './hmr-accept.js').replace(/\\/g, '/');
15
15
  function localizeExtractLoader(content, map) {
16
16
  const source = `${content}
17
17
 
@@ -9,7 +9,7 @@
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.IndexHtmlWebpackPlugin = void 0;
11
11
  const private_1 = require("@angular/build/private");
12
- const path_1 = require("path");
12
+ const node_path_1 = require("node:path");
13
13
  const webpack_1 = require("webpack");
14
14
  const error_1 = require("../../../utils/error");
15
15
  const webpack_diagnostics_1 = require("../../../utils/webpack-diagnostics");
@@ -47,13 +47,13 @@ class IndexHtmlWebpackPlugin extends private_1.IndexHtmlGenerator {
47
47
  files.push({
48
48
  name: chunk.name,
49
49
  file,
50
- extension: (0, path_1.extname)(file),
50
+ extension: (0, node_path_1.extname)(file),
51
51
  });
52
52
  }
53
53
  }
54
54
  const { csrContent: content, warnings, errors, } = await this.process({
55
55
  files,
56
- outputPath: (0, path_1.dirname)(this.options.outputPath),
56
+ outputPath: (0, node_path_1.dirname)(this.options.outputPath),
57
57
  baseHref: this.options.baseHref,
58
58
  lang: this.options.lang,
59
59
  });
@@ -68,7 +68,7 @@ class IndexHtmlWebpackPlugin extends private_1.IndexHtmlGenerator {
68
68
  };
69
69
  }
70
70
  async readAsset(path) {
71
- const data = this.compilation.assets[(0, path_1.basename)(path)].source();
71
+ const data = this.compilation.assets[(0, node_path_1.basename)(path)].source();
72
72
  return typeof data === 'string' ? data : data.toString();
73
73
  }
74
74
  async readIndex(path) {
@@ -43,8 +43,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.postcss = void 0;
44
44
  exports.default = default_1;
45
45
  const loader_utils_1 = require("loader-utils");
46
- const path = __importStar(require("path"));
47
- const url = __importStar(require("url"));
46
+ const path = __importStar(require("node:path"));
47
+ const url = __importStar(require("node:url"));
48
48
  const error_1 = require("../../../utils/error");
49
49
  function wrapUrl(url) {
50
50
  let wrappedUrl;
@@ -42,7 +42,7 @@ var __importStar = (this && this.__importStar) || (function () {
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.ScriptsWebpackPlugin = void 0;
44
44
  const loader_utils_1 = require("loader-utils");
45
- const path = __importStar(require("path"));
45
+ const path = __importStar(require("node:path"));
46
46
  const webpack_1 = require("webpack");
47
47
  const error_1 = require("../../../utils/error");
48
48
  const webpack_diagnostics_1 = require("../../../utils/webpack-diagnostics");
@@ -11,7 +11,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.StylesWebpackPlugin = void 0;
14
- const assert_1 = __importDefault(require("assert"));
14
+ const node_assert_1 = __importDefault(require("node:assert"));
15
15
  const error_1 = require("../../../utils/error");
16
16
  const webpack_diagnostics_1 = require("../../../utils/webpack-diagnostics");
17
17
  /**
@@ -51,12 +51,12 @@ class StylesWebpackPlugin {
51
51
  entryImport.push(`${resolvedPath}?ngGlobalStyle`);
52
52
  }
53
53
  else {
54
- (0, assert_1.default)(this.compilation, 'Compilation cannot be undefined.');
54
+ (0, node_assert_1.default)(this.compilation, 'Compilation cannot be undefined.');
55
55
  (0, webpack_diagnostics_1.addError)(this.compilation, `Cannot resolve '${path}'.`);
56
56
  }
57
57
  }
58
58
  catch (error) {
59
- (0, assert_1.default)(this.compilation, 'Compilation cannot be undefined.');
59
+ (0, node_assert_1.default)(this.compilation, 'Compilation cannot be undefined.');
60
60
  (0, error_1.assertIsError)(error);
61
61
  (0, webpack_diagnostics_1.addError)(this.compilation, error.message);
62
62
  }
@@ -8,10 +8,10 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.TransferSizePlugin = void 0;
11
- const util_1 = require("util");
12
- const zlib_1 = require("zlib");
11
+ const node_util_1 = require("node:util");
12
+ const node_zlib_1 = require("node:zlib");
13
13
  const webpack_diagnostics_1 = require("../../../utils/webpack-diagnostics");
14
- const brotliCompressAsync = (0, util_1.promisify)(zlib_1.brotliCompress);
14
+ const brotliCompressAsync = (0, node_util_1.promisify)(node_zlib_1.brotliCompress);
15
15
  const PLUGIN_NAME = 'angular-transfer-size-estimator';
16
16
  class TransferSizePlugin {
17
17
  constructor() { }
@@ -53,9 +53,9 @@ exports.globalScriptsByBundleName = globalScriptsByBundleName;
53
53
  exports.assetPatterns = assetPatterns;
54
54
  exports.getStatsOptions = getStatsOptions;
55
55
  exports.isPackageInstalled = isPackageInstalled;
56
- const crypto_1 = require("crypto");
57
56
  const fast_glob_1 = __importDefault(require("fast-glob"));
58
- const path = __importStar(require("path"));
57
+ const node_crypto_1 = require("node:crypto");
58
+ const path = __importStar(require("node:path"));
59
59
  const schema_1 = require("../../../builders/browser/schema");
60
60
  const package_version_1 = require("../../../utils/package-version");
61
61
  function getOutputHashFormat(outputHashing = schema_1.OutputHashing.None, length = 20) {
@@ -171,7 +171,7 @@ function getCacheSettings(wco, angularVersion) {
171
171
  // We use the versions and build options as the cache name. The Webpack configurations are too
172
172
  // dynamic and shared among different build types: test, build and serve.
173
173
  // None of which are "named".
174
- name: (0, crypto_1.createHash)('sha1')
174
+ name: (0, node_crypto_1.createHash)('sha1')
175
175
  .update(angularVersion)
176
176
  .update(package_version_1.VERSION)
177
177
  .update(wco.projectRoot)
@@ -11,10 +11,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.assertIsError = assertIsError;
14
- const assert_1 = __importDefault(require("assert"));
14
+ const node_assert_1 = __importDefault(require("node:assert"));
15
15
  function assertIsError(value) {
16
16
  const isError = value instanceof Error ||
17
17
  // The following is needing to identify errors coming from RxJs.
18
18
  (typeof value === 'object' && value && 'name' in value && 'message' in value);
19
- (0, assert_1.default)(isError, 'catch clause variable is not an Error instance');
19
+ (0, node_assert_1.default)(isError, 'catch clause variable is not an Error instance');
20
20
  }
@@ -41,8 +41,8 @@ var __importStar = (this && this.__importStar) || (function () {
41
41
  })();
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.i18nInlineEmittedFiles = i18nInlineEmittedFiles;
44
- const fs = __importStar(require("fs"));
45
- const path = __importStar(require("path"));
44
+ const fs = __importStar(require("node:fs"));
45
+ const path = __importStar(require("node:path"));
46
46
  const action_executor_1 = require("./action-executor");
47
47
  const copy_assets_1 = require("./copy-assets");
48
48
  const error_1 = require("./error");
@@ -45,9 +45,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.MissingAssetSourceRootException = void 0;
47
47
  exports.normalizeAssetPatterns = normalizeAssetPatterns;
48
- const fs_1 = require("fs");
49
48
  const node_assert_1 = __importDefault(require("node:assert"));
50
- const path = __importStar(require("path"));
49
+ const node_fs_1 = require("node:fs");
50
+ const path = __importStar(require("node:path"));
51
51
  class MissingAssetSourceRootException extends Error {
52
52
  constructor(path) {
53
53
  super(`The ${path} asset path must start with the project source root.`);
@@ -73,7 +73,7 @@ function normalizeAssetPatterns(assetPatterns, workspaceRoot, projectRoot, proje
73
73
  let glob, input;
74
74
  let isDirectory = false;
75
75
  try {
76
- isDirectory = (0, fs_1.statSync)(resolvedAssetPath).isDirectory();
76
+ isDirectory = (0, node_fs_1.statSync)(resolvedAssetPath).isDirectory();
77
77
  }
78
78
  catch {
79
79
  isDirectory = true;
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.normalizeCacheOptions = normalizeCacheOptions;
11
11
  const node_path_1 = require("node:path");
12
12
  /** Version placeholder is replaced during the build process with actual package version */
13
- const VERSION = '19.1.6';
13
+ const VERSION = '19.1.8';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&
@@ -42,8 +42,8 @@ var __importStar = (this && this.__importStar) || (function () {
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.MissingFileReplacementException = void 0;
44
44
  exports.normalizeFileReplacements = normalizeFileReplacements;
45
- const fs_1 = require("fs");
46
- const path = __importStar(require("path"));
45
+ const node_fs_1 = require("node:fs");
46
+ const path = __importStar(require("node:path"));
47
47
  class MissingFileReplacementException extends Error {
48
48
  constructor(path) {
49
49
  super(`The ${path} path in file replacements does not exist.`);
@@ -56,10 +56,10 @@ function normalizeFileReplacements(fileReplacements, workspaceRoot) {
56
56
  }
57
57
  const normalizedReplacement = fileReplacements.map((replacement) => normalizeFileReplacement(replacement, workspaceRoot));
58
58
  for (const { replace, with: replacementWith } of normalizedReplacement) {
59
- if (!(0, fs_1.existsSync)(replacementWith)) {
59
+ if (!(0, node_fs_1.existsSync)(replacementWith)) {
60
60
  throw new MissingFileReplacementException(replacementWith);
61
61
  }
62
- if (!(0, fs_1.existsSync)(replace)) {
62
+ if (!(0, node_fs_1.existsSync)(replace)) {
63
63
  throw new MissingFileReplacementException(replace);
64
64
  }
65
65
  }
@@ -8,16 +8,16 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.normalizePolyfills = normalizePolyfills;
11
- const fs_1 = require("fs");
12
- const path_1 = require("path");
11
+ const node_fs_1 = require("node:fs");
12
+ const node_path_1 = require("node:path");
13
13
  function normalizePolyfills(polyfills, root) {
14
14
  if (!polyfills) {
15
15
  return [];
16
16
  }
17
17
  const polyfillsList = Array.isArray(polyfills) ? polyfills : [polyfills];
18
18
  return polyfillsList.map((p) => {
19
- const resolvedPath = (0, path_1.resolve)(root, p);
19
+ const resolvedPath = (0, node_path_1.resolve)(root, p);
20
20
  // If file doesn't exist, let the bundle resolve it using node module resolution.
21
- return (0, fs_1.existsSync)(resolvedPath) ? resolvedPath : p;
21
+ return (0, node_fs_1.existsSync)(resolvedPath) ? resolvedPath : p;
22
22
  });
23
23
  }
@@ -8,18 +8,18 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.ensureOutputPaths = ensureOutputPaths;
11
- const fs_1 = require("fs");
12
- const path_1 = require("path");
11
+ const node_fs_1 = require("node:fs");
12
+ const node_path_1 = require("node:path");
13
13
  function ensureOutputPaths(baseOutputPath, i18n) {
14
14
  const outputPaths = i18n.shouldInline
15
15
  ? [...i18n.inlineLocales].map((l) => [
16
16
  l,
17
- i18n.flatOutput ? baseOutputPath : (0, path_1.join)(baseOutputPath, i18n.locales[l].subPath),
17
+ i18n.flatOutput ? baseOutputPath : (0, node_path_1.join)(baseOutputPath, i18n.locales[l].subPath),
18
18
  ])
19
19
  : [['', baseOutputPath]];
20
20
  for (const [, outputPath] of outputPaths) {
21
- if (!(0, fs_1.existsSync)(outputPath)) {
22
- (0, fs_1.mkdirSync)(outputPath, { recursive: true });
21
+ if (!(0, node_fs_1.existsSync)(outputPath)) {
22
+ (0, node_fs_1.mkdirSync)(outputPath, { recursive: true });
23
23
  }
24
24
  }
25
25
  return new Map(outputPaths);
@@ -46,16 +46,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.inlineLocales = inlineLocales;
47
47
  const remapping_1 = __importDefault(require("@ampproject/remapping"));
48
48
  const core_1 = require("@babel/core");
49
- const fs = __importStar(require("fs/promises"));
50
- const path = __importStar(require("path"));
51
- const worker_threads_1 = require("worker_threads");
49
+ const fs = __importStar(require("node:fs/promises"));
50
+ const path = __importStar(require("node:path"));
51
+ const node_worker_threads_1 = require("node:worker_threads");
52
52
  const environment_options_1 = require("./environment-options");
53
53
  const error_1 = require("./error");
54
54
  const load_esm_1 = require("./load-esm");
55
55
  // Lazy loaded webpack-sources object
56
56
  // Webpack is only imported if needed during the processing
57
57
  let webpackSources;
58
- const { i18n } = (worker_threads_1.workerData || {});
58
+ const { i18n } = (node_worker_threads_1.workerData || {});
59
59
  /**
60
60
  * Internal flag to enable the direct usage of the `@angular/localize` translation plugins.
61
61
  * Their usage is currently several times slower than the string manipulation method.
@@ -41,7 +41,7 @@ var __importStar = (this && this.__importStar) || (function () {
41
41
  })();
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.readTsconfig = readTsconfig;
44
- const path = __importStar(require("path"));
44
+ const path = __importStar(require("node:path"));
45
45
  const load_esm_1 = require("./load-esm");
46
46
  /**
47
47
  * Reads and parses a given TsConfig file.
@@ -11,15 +11,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.runModuleAsObservableFork = runModuleAsObservableFork;
14
- const child_process_1 = require("child_process");
15
- const path_1 = require("path");
14
+ const node_child_process_1 = require("node:child_process");
15
+ const node_path_1 = require("node:path");
16
16
  const rxjs_1 = require("rxjs");
17
17
  const tree_kill_1 = __importDefault(require("tree-kill"));
18
18
  function runModuleAsObservableFork(cwd, modulePath, exportName,
19
19
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
20
  args) {
21
21
  return new rxjs_1.Observable((obs) => {
22
- const workerPath = (0, path_1.resolve)(__dirname, './run-module-worker.js');
22
+ const workerPath = (0, node_path_1.resolve)(__dirname, './run-module-worker.js');
23
23
  const debugArgRegex = /--inspect(?:-brk|-port)?|--debug(?:-brk|-port)/;
24
24
  const execArgv = process.execArgv.filter((arg) => {
25
25
  // Remove debug args.
@@ -38,7 +38,7 @@ args) {
38
38
  // logger.error, // make it a stream
39
39
  // ];
40
40
  // }
41
- const forkedProcess = (0, child_process_1.fork)(workerPath, undefined, forkOptions);
41
+ const forkedProcess = (0, node_child_process_1.fork)(workerPath, undefined, forkOptions);
42
42
  // Cleanup.
43
43
  const killForkedProcess = () => {
44
44
  if (forkedProcess && forkedProcess.pid) {
@@ -45,7 +45,7 @@ exports.generateI18nBrowserWebpackConfigFromContext = generateI18nBrowserWebpack
45
45
  exports.generateBrowserWebpackConfigFromContext = generateBrowserWebpackConfigFromContext;
46
46
  exports.getIndexOutputFile = getIndexOutputFile;
47
47
  exports.getIndexInputFile = getIndexInputFile;
48
- const path = __importStar(require("path"));
48
+ const path = __importStar(require("node:path"));
49
49
  const webpack_1 = require("webpack");
50
50
  const webpack_merge_1 = require("webpack-merge");
51
51
  const builder_watch_plugin_1 = require("../tools/webpack/plugins/builder-watch-plugin");