@angular-devkit/build-angular 14.0.0-rc.3 → 14.1.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,83 +1,83 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "14.0.0-rc.3",
3
+ "version": "14.1.0-next.0",
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.2.0",
10
- "@angular-devkit/architect": "0.1400.0-rc.3",
11
- "@angular-devkit/build-webpack": "0.1400.0-rc.3",
12
- "@angular-devkit/core": "14.0.0-rc.3",
13
- "@babel/core": "7.17.10",
14
- "@babel/generator": "7.17.10",
10
+ "@angular-devkit/architect": "0.1401.0-next.0",
11
+ "@angular-devkit/build-webpack": "0.1401.0-next.0",
12
+ "@angular-devkit/core": "14.1.0-next.0",
13
+ "@babel/core": "7.18.2",
14
+ "@babel/generator": "7.18.2",
15
15
  "@babel/helper-annotate-as-pure": "7.16.7",
16
- "@babel/plugin-proposal-async-generator-functions": "7.16.8",
17
- "@babel/plugin-transform-async-to-generator": "7.16.8",
18
- "@babel/plugin-transform-runtime": "7.17.10",
19
- "@babel/preset-env": "7.17.10",
20
- "@babel/runtime": "7.17.9",
16
+ "@babel/plugin-proposal-async-generator-functions": "7.17.12",
17
+ "@babel/plugin-transform-async-to-generator": "7.17.12",
18
+ "@babel/plugin-transform-runtime": "7.18.2",
19
+ "@babel/preset-env": "7.18.2",
20
+ "@babel/runtime": "7.18.3",
21
21
  "@babel/template": "7.16.7",
22
22
  "@discoveryjs/json-ext": "0.5.7",
23
- "@ngtools/webpack": "14.0.0-rc.3",
24
- "ansi-colors": "4.1.1",
23
+ "@ngtools/webpack": "14.1.0-next.0",
24
+ "ansi-colors": "4.1.3",
25
25
  "babel-loader": "8.2.5",
26
26
  "babel-plugin-istanbul": "6.1.1",
27
27
  "browserslist": "^4.9.1",
28
- "cacache": "16.0.7",
29
- "copy-webpack-plugin": "10.2.4",
28
+ "cacache": "16.1.1",
29
+ "copy-webpack-plugin": "11.0.0",
30
30
  "critters": "0.0.16",
31
31
  "css-loader": "6.7.1",
32
- "esbuild-wasm": "0.14.38",
33
- "glob": "8.0.1",
32
+ "esbuild-wasm": "0.14.42",
33
+ "glob": "8.0.3",
34
34
  "https-proxy-agent": "5.0.1",
35
35
  "inquirer": "8.2.4",
36
36
  "jsonc-parser": "3.0.0",
37
37
  "karma-source-map-support": "1.4.0",
38
38
  "less": "4.1.2",
39
- "less-loader": "10.2.0",
39
+ "less-loader": "11.0.0",
40
40
  "license-webpack-plugin": "4.0.2",
41
41
  "loader-utils": "3.2.0",
42
42
  "mini-css-extract-plugin": "2.6.0",
43
- "minimatch": "5.0.1",
43
+ "minimatch": "5.1.0",
44
44
  "open": "8.4.0",
45
45
  "ora": "5.4.1",
46
46
  "parse5-html-rewriting-stream": "6.0.1",
47
47
  "piscina": "3.2.0",
48
- "postcss": "8.4.13",
48
+ "postcss": "8.4.14",
49
49
  "postcss-import": "14.1.0",
50
- "postcss-loader": "6.2.1",
51
- "postcss-preset-env": "7.5.0",
50
+ "postcss-loader": "7.0.0",
51
+ "postcss-preset-env": "7.7.0",
52
52
  "regenerator-runtime": "0.13.9",
53
53
  "resolve-url-loader": "5.0.0",
54
54
  "rxjs": "6.6.7",
55
- "sass": "1.51.0",
56
- "sass-loader": "12.6.0",
55
+ "sass": "1.52.2",
56
+ "sass-loader": "13.0.0",
57
57
  "semver": "7.3.7",
58
58
  "source-map-loader": "3.0.1",
59
59
  "source-map-support": "0.5.21",
60
- "stylus": "0.57.0",
61
- "stylus-loader": "6.2.0",
62
- "terser": "5.13.1",
60
+ "stylus": "0.58.1",
61
+ "stylus-loader": "7.0.0",
62
+ "terser": "5.14.0",
63
63
  "text-table": "0.2.0",
64
64
  "tree-kill": "1.2.2",
65
65
  "tslib": "2.4.0",
66
- "webpack": "5.72.1",
67
- "webpack-dev-middleware": "5.3.1",
68
- "webpack-dev-server": "4.9.0",
66
+ "webpack": "5.73.0",
67
+ "webpack-dev-middleware": "5.3.3",
68
+ "webpack-dev-server": "4.9.1",
69
69
  "webpack-merge": "5.8.0",
70
70
  "webpack-subresource-integrity": "5.1.0"
71
71
  },
72
72
  "optionalDependencies": {
73
- "esbuild": "0.14.38"
73
+ "esbuild": "0.14.42"
74
74
  },
75
75
  "peerDependencies": {
76
- "@angular/compiler-cli": "^14.0.0 || ^14.0.0-rc",
77
- "@angular/localize": "^14.0.0 || ^14.0.0-rc",
78
- "@angular/service-worker": "^14.0.0 || ^14.0.0-rc",
76
+ "@angular/compiler-cli": "^14.0.0 || ^14.0.0-next || ^14.1.0-next",
77
+ "@angular/localize": "^14.0.0 || ^14.0.0-next || ^14.1.0-next",
78
+ "@angular/service-worker": "^14.0.0 || ^14.0.0-next || ^14.1.0-next",
79
79
  "karma": "^6.3.0",
80
- "ng-packagr": "^14.0.0 || ^14.0.0-next",
80
+ "ng-packagr": "^14.0.0 || ^14.0.0-next || ^14.1.0-next",
81
81
  "protractor": "^7.0.0",
82
82
  "tailwindcss": "^2.0.0 || ^3.0.0",
83
83
  "typescript": ">=4.6.2 <4.8"
@@ -119,7 +119,7 @@ function createCompilerPlugin(pluginOptions, styleOptions) {
119
119
  // Once TypeScript provides support for retaining dynamic imports this workaround can be dropped.
120
120
  const compilerCli = await (0, load_esm_1.loadEsmModule)('@angular/compiler-cli');
121
121
  // Temporary deep import for transformer support
122
- const { createAotTransformers, mergeTransformers, } = require('@ngtools/webpack/src/ivy/transformation');
122
+ const { mergeTransformers, replaceBootstrap, } = require('@ngtools/webpack/src/ivy/transformation');
123
123
  // Setup defines based on the values provided by the Angular compiler-cli
124
124
  (_a = (_b = build.initialOptions).define) !== null && _a !== void 0 ? _a : (_b.define = {});
125
125
  for (const [key, value] of Object.entries(compilerCli.GLOBAL_DEFS_FOR_TERSER_WITH_AOT)) {
@@ -226,7 +226,9 @@ function createCompilerPlugin(pluginOptions, styleOptions) {
226
226
  ((_b = result.warnings) !== null && _b !== void 0 ? _b : (result.warnings = [])).push(message);
227
227
  }
228
228
  }
229
- fileEmitter = createFileEmitter(builder, mergeTransformers(angularCompiler.prepareEmit().transformers, createAotTransformers(builder, {})), () => []);
229
+ fileEmitter = createFileEmitter(builder, mergeTransformers(angularCompiler.prepareEmit().transformers, {
230
+ before: [replaceBootstrap(() => builder.getProgram().getTypeChecker())],
231
+ }), () => []);
230
232
  return result;
231
233
  });
232
234
  build.onLoad({ filter: compilerOptions.allowJs ? /\.[cm]?[jt]sx?$/ : /\.[cm]?tsx?$/ }, async (args) => {
@@ -47,6 +47,7 @@ const named_chunks_plugin_1 = require("../plugins/named-chunks-plugin");
47
47
  const progress_plugin_1 = require("../plugins/progress-plugin");
48
48
  const transfer_size_plugin_1 = require("../plugins/transfer-size-plugin");
49
49
  const typescript_2 = require("../plugins/typescript");
50
+ const watch_files_logs_plugin_1 = require("../plugins/watch-files-logs-plugin");
50
51
  const helpers_1 = require("../utils/helpers");
51
52
  // eslint-disable-next-line max-lines-per-function
52
53
  async function getCommonConfig(wco) {
@@ -143,6 +144,9 @@ async function getCommonConfig(wco) {
143
144
  append: hiddenSourceMap ? false : undefined,
144
145
  }));
145
146
  }
147
+ if (verbose) {
148
+ extraPlugins.push(new watch_files_logs_plugin_1.WatchFilesLogsPlugin());
149
+ }
146
150
  if (buildOptions.statsJson) {
147
151
  extraPlugins.push(new plugins_1.JsonStatsPlugin(path.resolve(root, buildOptions.outputPath, 'stats.json')));
148
152
  }
@@ -270,7 +270,7 @@ function getWebSocketSettings(options, servePath) {
270
270
  client: undefined,
271
271
  };
272
272
  }
273
- const webSocketPath = path_1.posix.join(servePath, 'ws');
273
+ const webSocketPath = path_1.posix.join(servePath, 'ng-cli-ws');
274
274
  return {
275
275
  webSocketServer: {
276
276
  options: {
@@ -0,0 +1,11 @@
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.io/license
7
+ */
8
+ import type { Compiler } from 'webpack';
9
+ export declare class WatchFilesLogsPlugin {
10
+ apply(compiler: Compiler): void;
11
+ }
@@ -0,0 +1,27 @@
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.io/license
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.WatchFilesLogsPlugin = void 0;
11
+ const PLUGIN_NAME = 'angular.watch-files-logs-plugin';
12
+ class WatchFilesLogsPlugin {
13
+ apply(compiler) {
14
+ compiler.hooks.watchRun.tap(PLUGIN_NAME, ({ modifiedFiles, removedFiles }) => {
15
+ compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
16
+ const logger = compilation.getLogger(PLUGIN_NAME);
17
+ if (modifiedFiles === null || modifiedFiles === void 0 ? void 0 : modifiedFiles.size) {
18
+ logger.log(`Modified files:\n${[...modifiedFiles].join('\n')}\n`);
19
+ }
20
+ if (removedFiles === null || removedFiles === void 0 ? void 0 : removedFiles.size) {
21
+ logger.log(`Removed files:\n${[...removedFiles].join('\n')}\n`);
22
+ }
23
+ });
24
+ });
25
+ }
26
+ }
27
+ exports.WatchFilesLogsPlugin = WatchFilesLogsPlugin;