2616 Commits

Author SHA1 Message Date
Bjarki
c146e9c086 feat(@angular-devkit/build-angular): enable webpack Trusted Types support
As reported in #20113, webpack triggers a Trusted Types violation when
lazy-loading is used. To mitigate that, enable webpack's Trusted Types
module (introduced in webpack/webpack#9856) using 'angular#bundler' as
the policy name.
2021-05-21 13:10:52 -04:00
Alan Agius
bea90a6130 fix(@angular-devkit/build-angular): don't add .hot-update.js script tags
Closes #20855
2021-05-21 13:07:42 -04:00
Charles Lyding
4dc7cf9529 fix(@angular-devkit/build-angular): ensure Sass worker implementation supports Node.js 12.14
The Worker constructor option for a transfer list is unfortunately not supported until Node.js 12.17. For Node.js versions prior to 12.17, a manual message post is now used to transfer the necessary initialization data to the Sass workers.
2021-05-21 13:07:12 -04:00
Alan Agius
43926a21ba fix(@angular-devkit/build-angular): compile schema in synchronously
AJV only support a single schema with the same ID, compiling schemas async can cause a race condition were multiple schemas with the same name as compiled at the same time.

Closes #20847
2021-05-19 16:34:55 +02:00
Luca Vazzano
dcbfe5cd8f docs(@angular-devkit/schematics): properly escape code in Templating quick reference 2021-05-19 12:04:14 +02:00
Alan Agius
f5f41ea929 perf(@angular-devkit/build-angular): clean no-longer used assets during builds
This reduce memory consumption during re-builds.

```
runtime.ba93f81591909b93394f.hot-update.js.map will be removed
styles.ba93f81591909b93394f.hot-update.js.map will be removed
runtime.ba93f81591909b93394f.hot-update.json will be removed
runtime.ba93f81591909b93394f.hot-update.js will be removed
styles.ba93f81591909b93394f.hot-update.js will be removed
```

See https://github.com/webpack/webpack/issues/12947#issuecomment-812108140 and https://github.com/webpack/webpack/issues/13127
2021-05-18 18:55:18 +02:00
Renovate Bot
2c7e5d9fc9 build: update all non-major dependencies 2021-05-18 13:15:00 +02:00
Alan Agius
7587807857 docs(@angular-devkit/build-angular): add more info link to proxyConfig
Closes #20827
2021-05-18 12:30:57 +02:00
Ryan Lester
d34dc8853d fix(@angular-devkit/build-angular): correctly resolve babel runtime helpers
Closes #20800
2021-05-18 07:08:36 +02:00
Alan Agius
ae07d36024 build: update terser-webpack-plugin to version 5 2021-05-17 19:28:51 +02:00
Alan Agius
79c5284892 fix(@angular-devkit/build-angular): revert open to 8.0.2
Closes #20807
2021-05-17 18:05:20 +02:00
Charles Lyding
438c6d932e perf(@angular-devkit/build-angular): render Sass using a pool of workers
A pool of Workers is now used to process Sass render requests. This change allows multiple synchronous render operations to occur at the same time. Sass synchronous render operations can be up to two times faster than the asynchronous variant. The benefit will be most pronounced in applications with large amounts of Sass stylesheets.
2021-05-17 10:26:47 +02:00
Alan Agius
2643fb11a9 fix(@angular-devkit/build-angular): non injected styles should not count as initial
Closes #20781
2021-05-14 13:11:11 +02:00
Renovate Bot
f048db84de build: update dependency less-loader to v9 2021-05-14 09:45:38 +02:00
Alan Agius
4367c3a562 fix(@angular-devkit/build-angular): add NG_BUILD_MAX_WORKERS settimgs to control maximum number of workers 2021-05-14 08:29:35 +02:00
Alan Agius
0ebf7569f6 perf(@angular-devkit/build-angular): use CSS optimization plugin that leverages workers
With this change we use `css-minimizer-webpack-plugin` which leverages workers and also webpack cache.
2021-05-14 08:29:35 +02:00
Renovate Bot
1fdd0bdd92 build: update all non-major dependencies 2021-05-14 07:37:50 +02:00
Alan Agius
7df9d19297 fix(@angular-devkit/build-angular): add experimental web-assembly
Closes #20762
2021-05-13 19:36:41 +02:00
Alan Agius
d9566bfac8 perf(@angular-devkit/build-angular): reduce JSON stats
With this change we reduce the size of the JSON stats object, the main benefit that this change brings is that unspecified stats now default to `false`, due to the `all: false` configuration in e992c9a70b/packages/angular_devkit/build_angular/src/webpack/configs/stats.ts (L12)
2021-05-13 19:36:26 +02:00
Alan Agius
80a08b5e53 test: fix formatting in src/webpack/configs/styles.ts 2021-05-13 17:10:28 +02:00
Charles Lyding
cc7f75f25b perf(@angular-devkit/build-angular): execute dart-sass in a worker
The dart-sass Sass implementation will now be executed in a separate worker thread. The wrapper worker implementation provides an interface that can be directly used by Webpack's `sass-loader`.
The worker implementation allows dart-sass to be executed in its synchronous mode which can be up to two times faster than its asynchronous mode. The worker thread also allows Webpack to continue other bundling tasks while the Sass stylesheets are being processed.
2021-05-13 12:30:42 +02:00
Renovate Bot
e37a96ad8a build: update all non-major dependencies 2021-05-13 11:05:04 +02:00
Renovate Bot
ade54006f6 build: update dependency stylus-loader to v6 2021-05-13 11:04:48 +02:00
Renovate Bot
458723cdbb build: update angular 2021-05-13 06:53:01 +02:00
Alan Agius
5315791c95 build: fix typings to works with webpack 5.37.0 2021-05-13 06:52:37 +02:00
Renovate Bot
17fa3c1c2e build: update all non-major dependencies 2021-05-13 06:52:37 +02:00
Renovate Bot
9d6eecd0de build: update dependency resolve-url-loader to v4 2021-05-10 16:22:41 +01:00
Renovate Bot
d279b12e61 build: update all non-major dependencies 2021-05-10 16:22:25 +01:00
Charles Lyding
f7dc97f40e refactor(@angular-devkit/schematics): allow use of a package manager's force option
This change allows consumers of the `NodeWorkflow` to configure the package installation task to use a package manager's `--force` option. This will be used by the `@angular/cli` update command when the update command's force option is used. This change is not intended to enable a schematic to adjust the force option.
2021-05-10 16:21:25 +01:00
Renovate Bot
b34ed5c400 build: update all non-major dependencies 2021-05-07 14:33:04 +01:00
Alan Agius
678773ffd4 fix(@angular-devkit/build-angular): disable CSS declaration sorting optimizations
CSS declaration orders matters in some cases. This optimization is currently causing broken CSS output.

Closes #20693
2021-05-05 10:17:49 -04:00
Alan Agius
5f6155636d docs: fix typo in showCircularDependencies deprecation message 2021-05-05 10:17:15 -04:00
Renovate Bot
24ca8b22ae build: update all non-major dependencies 2021-05-05 08:58:50 -04:00
Renovate Bot
07a6487897 build: update all non-major dependencies 2021-05-04 10:02:01 -04:00
Alan Agius
e992c9a70b build: update files to be fix eslint header/header failures 2021-05-04 09:59:40 -04:00
Alan Agius
50078ac7b2 refactor(@angular-devkit/build-angular): remove redundant any casting 2021-05-03 11:39:05 -04:00
Renovate Bot
b2594bc228 build: update all non-major dependencies 2021-05-03 10:37:18 -04:00
Charles Lyding
c1512e4274 build: update files to be eslint compliant
All TypeScript files have been updated to pass the new eslint-based linting checks. eslint compatible disabling comments have also been added in place of the previous tslint comments.
2021-05-03 07:31:02 -04:00
Renovate Bot
88c017582e build: update all non-major dependencies 2021-04-30 17:06:09 -04:00
Renovate Bot
e104fbf009 build: update all non-major dependencies 2021-04-29 12:52:58 -04:00
Charles Lyding
37a06a7c37 build: format all files
All files are now formatted using the ng-dev tools via prettier.
2021-04-28 16:05:49 -07:00
Alan Agius
7088f3a33b refactor(@angular-devkit/build-angular): replace deprecated webpack.JavascriptModulesPlugin usage
With this change we replace usage of the deprecated `webpack.JavascriptModulesPlugin` with `webpack.javascript.JavascriptModulesPlugin`
2021-04-28 16:37:02 +02:00
Renovate Bot
0597a1a4ec build: update dependency source-map-loader to v2 2021-04-28 13:11:04 +02:00
Renovate Bot
8b34305777 build: update all non-major dependencies 2021-04-28 12:18:43 +02:00
Renovate Bot
c5872e1124 build: update dependency stylus-loader to v5 2021-04-28 12:18:00 +02:00
Alan Agius
9d6c1dad95 refactor(@angular-devkit/build-angular): remove old worker_threads detection
We now don't support Node 10 hence `worker_threads` are always available.
2021-04-27 15:46:54 +02:00
Alan Agius
38acdb70d5 test(@angular-devkit/build-angular): update HMR test to support new chrome driver 2021-04-27 14:55:18 +02:00
Renovate Bot
6864168cdb build: update webpack to version 5.36.0 2021-04-27 13:52:48 +02:00
Joey Perrott
003854257c build: migrate all file header to use Google LLC rather than Google Inc 2021-04-27 08:35:22 +02:00
Renovate Bot
e813f47559 build: update all non-major dependencies packages 2021-04-26 20:39:01 +02:00