192 Commits

Author SHA1 Message Date
Charles Lyding
3c4ca3fa7f refactor(@angular-devkit/build-webpack): assert catch clause variable type before usage
Prepares the `@angular-devkit/build-webpack` package for the eventual change of enabling the
TypeScript `useUnknownInCatchVariables` option. This option provides additional
code safety by ensuring that the catch clause variable is the proper type before
attempting to access its properties. Similar changes will be needed in the other
packages in the repository prior to enabling `useUnknownInCatchVariables`.
2022-06-14 11:28:21 +02:00
Renovate Bot
450074ff69 build: update all non-major dependencies 2022-06-03 14:54:21 -04:00
Renovate Bot
73bda262c0 build: update all non-major dependencies 2022-05-10 12:14:33 -07:00
Alan Agius
3afd1ab9c0 fix(@angular-devkit/build-webpack): emit devserver setup errors
Closes #22969
2022-04-11 11:46:51 -07:00
Renovate Bot
78b3537731 build: update all non-major dependencies 2022-04-08 10:10:14 -07:00
Renovate Bot
5ebfe805ae build: update all non-major dependencies 2022-04-04 10:04:28 -04:00
Charles Lyding
966d25b55e fix(@angular-devkit/build-angular): remove unneeded JIT reflect metadata polyfill
Since Angular 8, the CLI has transformed decorator metadata to a form that can be used by the Angular dependency injector without the TDZ limitations of Typescript's decorator metadata emit feature.
As a result, a JIT application compiled with the CLI no longer requires the reflect metadata polyfill that was provided by `core-js`.
This polyfill was also the last remaining usage of the `core-js` package within `@angular-devkit/build-angular` which allows the `core-js` package to also be removed.

Refs: https://github.com/angular/angular-cli/pull/14473 & https://github.com/angular/angular/pull/37382

BREAKING CHANGE: Reflect metadata polyfill is no longer automatically provided in JIT mode
Reflect metadata support is not required by Angular in JIT applications compiled by the CLI.
Applications built in AOT mode did not and will continue to not provide the polyfill.
For the majority of applications, the reflect metadata polyfill removal should have no effect.
However, if an application uses JIT mode and also uses the previously polyfilled reflect metadata JavaScript APIs, the polyfill will need to be manually added to the application after updating.
To replicate the previous behavior, the `core-js` package should be manually installed and the `import 'core-js/proposals/reflect-metadata';` statement should be added to the application's `polyfills.ts` file.
2022-03-23 12:58:55 -07:00
Renovate Bot
a3c0aa9f86 build: update all non-major dependencies 2022-03-03 18:53:49 +01:00
Renovate Bot
3c31c22ba6 build: update all non-major dependencies 2022-02-17 19:02:19 +01:00
Renovate Bot
65be45b4b2 build: update all non-major dependencies 2022-02-16 12:19:30 +01:00
Renovate Bot
a6bbd60d9f build: update all non-major dependencies 2022-02-01 17:02:50 -08:00
Alan Agius
69ecddaa7d feat(@schematics/angular): update new and existing projects compilation target to ES2020
With this change we update the TypeScript compilation target to `ES2020` for both new and existing projects. This is because all browsers that Angular supports (https://angular.io/guide/browser-support) support `ES2020` features without the need for polyfills.
2022-01-28 11:01:09 -08:00
Alan Agius
cb73c0b4ae fix(@angular-devkit/build-webpack): correctly handle ESM webpack configurations
Previoiusly, we didn't correctly handle ESM configurations as the `import` was always downlevelled to `require` by TypeScript.

Closes #22547
2022-01-24 20:33:21 +01:00
Renovate Bot
1d58215e00 build: update dependency node-fetch to v2.6.7 [security] 2022-01-24 13:53:08 +01:00
Alan Agius
e9684b2fd2 build: update all non-major dependencies 2022-01-24 12:54:31 +01:00
Derek Cormier
4721b2796c build: correctly stamp experimental packages in bazel build 2022-01-21 12:50:53 +01:00
Renovate Bot
81b2bd6ea3 build: update all non-major dependencies 2022-01-12 10:07:17 -08:00
Derek Cormier
c2737dd51a build: use placeholder version for stamping 2022-01-12 10:02:23 -08:00
Alan Agius
2b789b3ad0 refactor: remove @types/webpack-dev-server
This package is no longer needed since `webpack-dev-server` now has it's own typings.
2022-01-10 11:32:40 -08:00
Derek Cormier
4b5c52b0d8 build: perform package.json substitutions in bazel build 2022-01-10 10:25:49 -08:00
Derek Cormier
31801c1a1a build: reproduce original package structure using bazel 2021-12-10 11:06:41 +01:00
Renovate Bot
96c244fe10 build: update all non-major dependencies 2021-12-08 08:34:25 +01:00
Renovate Bot
1a9da01b3a build: update all non-major dependencies 2021-11-29 11:17:36 -08:00
Renovate Bot
fe03267d38 build: update all non-major dependencies 2021-11-24 12:36:55 +01:00
Renovate Bot
3925768e7e build: update all non-major dependencies 2021-11-22 08:55:46 +01:00
Renovate Bot
22f8e8a83a build: update all non-major dependencies 2021-11-17 09:32:28 +00:00
Renovate Bot
c20153db81 build: update all non-major dependencies 2021-11-10 14:24:25 -05:00
Renovate Bot
f049feeace build: update all non-major dependencies 2021-11-09 13:04:00 -05:00
Renovate Bot
1a2467560c build: update all non-major dependencies 2021-11-08 10:20:09 -05:00
Renovate Bot
5b186c15b7 build: update all non-major dependencies 2021-11-02 16:58:48 +01:00
Renovate Bot
6bf379726c build: update all non-major dependencies 2021-10-27 04:44:14 -05:00
Renovate Bot
8298afed72 build: update all non-major dependencies 2021-10-21 03:25:33 -05:00
Charles Lyding
0780e63c2d refactor(@angular-devkit/build-webpack): reduce complexity of get emitted files helper function
The deduplication logic is now inline with the chunk and asset iteration and is checked via a Set instead of a follow-up step.
2021-10-19 10:09:10 -04:00
Renovate Bot
167706a5d7 build: update all non-major dependencies 2021-10-14 12:55:20 -04:00
Renovate Bot
32e644518b build: update all non-major dependencies 2021-10-11 10:22:59 +02:00
Renovate Bot
7c2119e48a build: update all non-major dependencies 2021-10-08 10:32:47 +02:00
Alan Agius
64ca38bda5 test(@angular-devkit/build-webpack): disable webpack cache during unit tests
Unit tests are not isolated and therefore using cache might be flakey due to race conditions.
2021-10-06 19:11:47 -04:00
Alan Agius
7ff8c5350e feat(@schematics/angular): add /.angular/cache to .gitignore
With this change we add `/.angular/cache` to `.gitignore`. This folder will primary be used to store the build disk cache artifacts.
2021-10-06 08:02:22 -05:00
Renovate Bot
a5dadc5f71 build: update all non-major dependencies 2021-10-06 06:12:13 -05:00
Alan Agius
75fddc9b13 test(@angular-devkit/build-angular): workaround for rxjs 6 directory imports
rxjs 6 requires directory imports which are not support in ES modules. Disabling `fullySpecified` allows Webpack to ignore cases such as this until the package can be updated to use package exports.
2021-10-05 11:38:20 -04:00
Renovate Bot
1a8d0d0af5 build: update all non-major dependencies 2021-09-29 15:36:38 -04:00
Alan Agius
537e3a1944 refactor(@angular-devkit/build-webpack): port 0 WEBPACK_DEV_SERVER_BASE_PORT workaround
No longer needed due to change in webpack-dev-server. See: ed67f66fc4/lib/Server.js (L77-L79)
2021-09-28 05:48:28 -04:00
Renovate Bot
d2e302cc42 build: update all non-major dependencies 2021-09-27 06:46:21 -04:00
Alan Agius
9efcb32e37 fix(@angular-devkit/build-webpack): better handle concurrent dev-servers
Webpack-dev-server doesn't handle concurrency very well. When using port 0, and 2 processes start at the same time, they end up being given the same port. The main reason for the issue is that it find a free port, put only uses at a later stage.
2021-09-21 16:07:30 +02:00
Renovate Bot
ed376fe02e build: update all non-major dependencies 2021-09-17 19:57:23 +02:00
Renovate Bot
3f31a6757f build: update all non-major dependencies 2021-09-14 09:05:32 +01:00
Renovate Bot
40ebaa035e build: update all non-major dependencies 2021-09-04 10:27:31 +02:00
Renovate Bot
7550ecbaf6 build: update all non-major dependencies 2021-09-02 18:25:48 +02:00
Alan Agius
a0b5897d50 feat(@angular-devkit/build-webpack): update webpack-dev-server to version 4
BREAKING CHANGE:

Support for `webpack-dev-server` version 3 has been removed. For more information about the migration please see: https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md

Note: this change only affects users depending on `@angular-devkit/build-webpack` directly.
2021-08-27 15:40:10 +02:00
Charles Lyding
a7de97e485 build: add Bazel ts_library rule package_name properties to all packages
rules_nodejs 4 requires that a package_name property be specified within a ts_library rule for the output to be linked into the package repository. Failing to add the property can cause test failures due to unresolved packages.
2021-08-26 07:30:44 +02:00