684 Commits

Author SHA1 Message Date
Angular Robot
f0933d3fd1 build: update angular 2022-09-23 14:28:44 -04:00
Alan Agius
d09da83d26 refactor: use addWarning and addError helpers to push Webpack diagnostics
With this change we replace all usage of `compilation.errors `and `compilation.warnings.push` with `addError` and `addWarning` respectively.

Also, we update the helpers in build-angular to use `WebpackError` from the current compilation to avoid mismatching instances.
2022-09-22 10:10:31 -04:00
Angular Robot
3315d8c22c build: update angular 2022-09-16 11:37:25 -07:00
Jason Bedard
4de9045de8 test: unit test multiple node versions in separate jobs 2022-09-14 10:43:17 -07:00
Charles Lyding
b2add316e7 build: remove unneeded BUILD file licenses rule comments 2022-09-13 10:33:49 -07:00
Charles Lyding
4fa8392a13 perf(@ngtools/webpack): avoid bootstrap conversion AST traversal where possible
To support AOT compilation the Angular bootstrap call needs to be converted from
using `platform-browser-dynamic` to `platform-browser`. This transform was previously
being executed against every source file within the program regardless of the presence of
`platformBrowserDynamic`. An initial check is now performed that can avoid AST traversal
when the bootstrapping call is not present in a file.
2022-09-09 10:57:41 +02:00
Angular Robot
5b49afc84a build: update dependency typescript to v4.8.3 2022-09-09 10:57:01 +02:00
Angular Robot
f0c67e4323 build: update angular 2022-09-08 15:03:36 +02:00
Alan Agius
34479475ad refactor: remove Ivy checks
This checks are no longer needed as `enableIvy` option is now meaningless to the compiler
2022-09-06 17:36:00 +02:00
Alan Agius
2300be6a41 build: update dependencies to Angular 15.0.0-next 2022-08-30 08:53:41 -04:00
Angular Robot
de2b549a92 build: update dependency typescript to v4.8.2 2022-08-29 14:48:02 -04:00
Angular Robot
f6c0d47ad8 build: update angular 2022-08-22 16:31:28 -06:00
Kristiyan Kostadinov
48dec89e91 build: update to TypeScript 4.8 RC
Updates to the TypeScript 4.8 RC and adds some code to account for a breaking change where the decorators and modifiers of an AST node have been combined into a single array.
2022-08-22 15:28:47 -06:00
Angular Robot
4adbdba532 build: update angular 2022-08-10 15:31:33 -04:00
Angular Robot
84f01a3ad5 build: update angular 2022-08-05 11:02:49 -07:00
Alan Agius
cf9afeec20 fix(@ngtools/webpack): elide type only named imports when using emitDecoratorMetadata
With this change we fix an issue where type only named imports were being emitted. As a result webpack failed to resolve such symbols as they don't exist in JavaScript.

Closes #23667
2022-08-05 11:02:07 -07:00
Jason Bedard
db5c1fc13c test: run tests on multiple node versions 2022-08-03 10:33:46 -07:00
Paul Gschwendtner
087ab46ca9 build: update dev-infra packages and account for build-tooling split from ng-dev
The dev-infra build tooling is now decoupled from `ng-dev`. This will
make it easier to update `ng-dev` without necessarily needing to upgrade
the whole build system, Bazel etc. This is useful when e.g. new release
tool features have been added and should also be ported to active LTS
branches.
2022-07-27 12:35:15 +02:00
Angular Robot
d55eada6c2 build: update all non-major dependencies 2022-07-25 16:33:08 +02:00
Angular Robot
00515e1711 build: update angular 2022-07-21 19:03:09 -04:00
Angular Robot
7c1c56468d build: update angular 2022-07-14 15:21:21 -07:00
Angular Robot
951292e2dc build: update angular 2022-07-08 10:28:09 +02:00
Angular Robot
87c7f4cbc8 build: update angular 2022-07-04 15:42:58 +02:00
JoostK
5319428e14 fix(@ngtools/webpack): do not run ngcc when node_modules does not exist
Prior to this change the CLI would fail with an error when ngcc could not
be run due to a missing `node_modules` directory, as is the case with Yarn
Plug'n'Play for example. The workaround was to create an empty `node_modules`
directory, but this is inconvenient and shouldn't make any difference.

This commit removes the error and simply skips ngcc processing.
2022-07-04 09:43:04 +02:00
Alan Agius
7ababc210b fix(@ngtools/webpack): restore process title after NGCC is executed
More context about this can be found in the following comment: https://github.com/angular/angular-cli/issues/19205#issuecomment-722727791

Closes #19205
2022-06-28 11:11:06 -04:00
Charles Lyding
34ecf669dd fix(@ngtools/webpack): show a compilation error on invalid TypeScript version
A TypeScript version mismatch with the Angular compiler will no longer cause an
exception to propagate up through the Webpack system. In Node.js v14, this resulted
in an unhandled promise rejection warning and the build command never completing.
This can also be reproduced in newer versions of Node.js by using the Node.js
option `--unhandled-rejections=warn`. To correct this issue, the version mismatch
is now treated as a compilation error and added to the list of errors that are
displayed at the end of the build. This also has the benefit of avoiding the stack
trace of the exception from being shown which previously drew attention away from
the actual error message.
2022-06-28 09:11:22 -04:00
renovate[bot]
0922cce936 build: update angular 2022-06-23 09:57:29 -07:00
Renovate Bot
268ccd5c5f build: update angular 2022-06-16 13:53:49 +02:00
Charles Lyding
263626280f refactor(@ngtools/webpack): assert catch clause variable type before usage
Prepares the `@ngtools/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
df9ce71362 build: update angular 2022-06-09 09:23:45 -04:00
Renovate Bot
45b6954174 build: update angular 2022-06-03 15:15:13 -04:00
Renovate Bot
450074ff69 build: update all non-major dependencies 2022-06-03 14:54:21 -04:00
Renovate Bot
7b5de2c22b build: update angular 2022-05-27 14:15:13 -04:00
Kristiyan Kostadinov
d2e9edd463 build: update to TypeScript 4.7 final
Bumps up the TypeScript 4.7 for our own build as well as any newly-created apps.
2022-05-25 11:15:46 -07:00
Renovate Bot
6735b8372a build: update angular 2022-05-19 18:29:34 -07:00
Renovate Bot
516f8a87c5 build: update angular 2022-05-18 13:19:58 -04:00
Charles Lyding
b867714c3d build: update peer dependencies to support unreleased 14.1.x prerelease snapshots 2022-05-18 09:36:39 -04:00
Kristiyan Kostadinov
8ed291d0a5 build: update to TypeScript 4.7 RC
Bumps up the repo to the RC version of TypeScript 4.7.
2022-05-16 09:19:26 -04:00
Alan Agius
a867aa4536 refactor(@ngtools/webpack): simplify resolution flow by using generators
With this change we refactor the paths-plugin resolution flow by using generators which makes the code more readable and easier to follow.
2022-05-12 09:32:19 -04:00
Paul Gschwendtner
ba93117e78 fix(@angular-devkit/build-angular): properly handle locally-built APF v14 libraries
Locally-built APF v14 libraries should be resolved properly. Webpack
currently does not resolve them (in e.g. `dist/`) because the local
distribution folders are not marked as module roots, causing Webpack
to never hit the `module`/`raw-module` resolution hooks and therefore
skipping package exports resolution and breaking secondary entry-points
from being resolved properly (when bundling).

We fix this by also attempting to resolve path mappings as modules,
allowing for Webpacks `resolve-in-package` hooks to be activated. These
hooks support the `exports` field and therefore APF v14 secondary
entry-points which are not necessarily inside a Webpack resolve
`modules:` root (but e.g. in `dist/`)
2022-05-11 08:59:07 -07:00
Renovate Bot
73bda262c0 build: update all non-major dependencies 2022-05-10 12:14:33 -07:00
Kristiyan Kostadinov
7291579073 build: update to TypeScript 4.7
Bumps up the TypeScript version to 4.7.
2022-05-06 15:51:02 -07:00
Kristiyan Kostadinov
0301cf6c10 build: prepare TypeScript 4.7
Expands the version range to allow TypeScript 4.7 and makes the necessary code changes in order to support it.
2022-05-06 15:51:02 -07:00
Renovate Bot
0975963cb7 build: update angular 2022-05-06 11:00:55 -07:00
Paul Gschwendtner
156f15e47f build: cleanup references to old master branch
Cleans up all referneces to the old `master` branch.
2022-05-04 09:55:54 -07:00
Renovate Bot
1c634cd327 build: update dependency typescript to v4.6.4 2022-04-29 16:39:45 -07:00
Charles Lyding
044101554d perf(@ngtools/webpack): use Webpack's built-in xxhash64 support
Webpack provides built-in support for creating hashes using the xxhash64 algorithm via a WebAssembly module.
This can be significantly faster than the previously used md5 algorithm.
The Webpack peer dependency has also been update to a minimum of 5.54.0 to ensure xxhash64 supported is available.
2022-04-26 17:13:33 -04:00
Renovate Bot
8b36762075 build: update angular 2022-04-22 11:32:18 -04:00
Renovate Bot
1fd3893c29 build: update angular 2022-04-14 12:05:58 +02:00
Renovate Bot
78b3537731 build: update all non-major dependencies 2022-04-08 10:10:14 -07:00