684 Commits

Author SHA1 Message Date
Renovate Bot
3909528c08 build: update angular 2022-04-08 09:37:47 -07:00
Renovate Bot
5ebfe805ae build: update all non-major dependencies 2022-04-04 10:04:28 -04:00
Renovate Bot
f6965fe4f8 build: update angular 2022-03-31 17:13:42 -04:00
Renovate Bot
77a828a1cd build: update angular 2022-03-28 14:15:08 +02:00
Renovate Bot
f222f3868c build: update dependency typescript to v4.6.3 2022-03-26 08:25:28 +01:00
Renovate Bot
5d38bee8cf build: update angular 2022-03-24 14:55:19 +01:00
Paul Gschwendtner
0c344259dc fix(@ngtools/webpack): update peer dependency to reflect TS 4.6 support
Updates the peer dependency to reflect the TS 4.6 support, avoiding
warnings like:

```
warning "@angular-devkit/build-angular > @ngtools/webpack@14.0.0-next.6" has incorrect peer dependency "typescript@>=4.4.3 <4.6".

```
2022-03-23 12:58:17 -07:00
Alan Agius
7fa3e65879 feat(@angular/cli): support TypeScript 4.6.2
BREAKING CHANGE:

Support for TypeScript 4.4 and 4.5 has been removed. Please update to TypeScript 4.6.
2022-03-10 15:36:19 -05:00
Renovate Bot
a3c0aa9f86 build: update all non-major dependencies 2022-03-03 18:53:49 +01:00
Renovate Bot
38a9d9eb5d build: update angular 2022-03-01 08:58:23 -08: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
b46f624361 build: update angular 2022-02-08 13:06:24 +00:00
Alan Agius
966dd01eab fix(@ngtools/webpack): support locating PNPM lock file during NGCC processing
Previously, we only handled Yarn and NPM lock files even though PNPM is supported as package manager.

The lock file is used to perform checks to determine if an initial execution of NGCC was already performed.

Closes #22632
2022-02-07 10:54:52 +00:00
Renovate Bot
a6bbd60d9f build: update all non-major dependencies 2022-02-01 17:02:50 -08:00
Alan Agius
b3082355c0 build: update @angular/ packages to version 14 prerelease 2022-01-28 10:59:53 -08:00
Alan Agius
9277eed1d9 refactor(@ngtools/webpack): remove deprecated ivy namespace
BREAKING CHANGE:

`ivy` namespace has been removed from the public API.

- `ivy.AngularWebpackPlugin` -> `AngularWebpackPlugin`
- `ivy.AngularPluginOptions` -> `AngularPluginOptions`
2022-01-27 11:06:26 -08:00
Alan Agius
e9684b2fd2 build: update all non-major dependencies 2022-01-24 12:54:31 +01:00
Renovate Bot
1fa5e1f975 build: update dependency typescript to v4.5.5 2022-01-21 12:51:57 +01:00
Renovate Bot
4280990ef4 build: update angular 2022-01-20 12:31:38 +01:00
Doug Parker
4de2eb54f8 build: bump Angular peer deps to 13.2.0-next
`next` releases are currently for 13.2.0, so this is necessary to avoid peer dep warnings.
2022-01-19 07:22:19 +01:00
Renovate Bot
5967d79c73 build: update angular 2022-01-16 19:40:43 +00: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
Derek Cormier
4b5c52b0d8 build: perform package.json substitutions in bazel build 2022-01-10 10:25:49 -08:00
Renovate Bot
fd22dd5efe build: update angular 2021-12-17 07:16:04 +01:00
Alan Agius
b03b9eefea perf(@ngtools/webpack): reduce redudant module rebuilds when cache is restored
With this change we reduce the redundant module rebuilds when Webpack's FS cache is restored.

Previously, when the cache was restored we caused all modules to be rebuild even though their contents didn't change. This is because the file emit history wasn't persisted to disk.

This also caused the side effect that Webpack will create additional cache `pack` files due to the unnecessary module rebuilds, which ultimatly causes increase of the size of the cache on disk.
2021-12-15 11:37:55 -08:00
Renovate Bot
d89d4f8775 build: update dependency typescript to v4.5.4 2021-12-14 11:24:10 +01:00
Alan Agius
51a6da535e build: update angular 2021-12-10 13:01:38 +01:00
Renovate Bot
d9d713609a build: update dependency typescript to v4.5.3 2021-12-10 11:06:56 +01: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
Alan Agius
f4cd684855 refactor(@ngtools/webpack): remove direct angular resource loader
We remove the custom direct resource loader which is used for JIT when `directTemplateLoading` is enabled. Instead, use Webpack's [asset modules](https://webpack.js.org/guides/asset-modules/) which were introduced in version 5.

To the resource URL, we also add a query parameter, `ngResource`. This is used to be filter request based on a query. See https://webpack.js.org/guides/asset-modules/#replacing-inline-loader-syntax for more information.
2021-12-08 08:33:18 +01:00
Alan Agius
f4349c5d03 refactor(@ngtools/webpack): remove ESM workarounds 2021-12-06 14:53:04 +00:00
Alan Agius
a0c29bf058 refactor(@ngtools/webpack): use webpack API to delete assets in compilation 2021-12-06 14:52:25 +00:00
Alan Agius
d111adea2c build: update to TypeScript 4.5 2021-12-02 09:45:04 -08:00
Alan Agius
10d4ede2de fix(@ngtools/webpack): handle promise rejection during Angular program analyzes
Currently, when `analyzeAsync` promise is rejected, the build fails with an `UnhandledPromiseRejectionWarning`.

Example:
```
(node:69086) UnhandledPromiseRejectionWarning: Error: Cannot use a JavaScript or TypeScript file (/Users/error-testing/src/app/app.component.ts) in a component's styleUrls or templateUrl.
    at WebpackResourceLoader._compile (/Users/error-testing/node_modules/@ngtools/webpack/src/resource_loader.js:107:19)
    at WebpackResourceLoader.get (/Users/error-testing/node_modules/@ngtools/webpack/src/resource_loader.js:266:44)
    at Object.resourceHost.readResource (/Users/error-testing/node_modules/@ngtools/webpack/src/ivy/host.js:48:35)
    at AdapterResourceLoader.preload (file:///Users/error-testing/node_modules/@angular/compiler-cli/bundles/index.js:12177:31)
    at resolveStyleUrl (file:///Users/error-testing/node_modules/@angular/compiler-cli/bundles/index.js:9593:36)
    at file:///Users/error-testing/node_modules/@angular/compiler-cli/bundles/index.js:9621:47
    at Array.map (<anonymous>)
    at ComponentDecoratorHandler.preanalyze (file:///Users/error-testing/node_modules/@angular/compiler-cli/bundles/index.js:9621:29)
    at TraitCompiler.analyzeClass (file:///Users/error-testing/node_modules/@angular/compiler-cli/bundles/index.js:6647:39)
    at visit2 (file:///Users/error-testing/node_modules/@angular/compiler-cli/bundles/index.js:6494:14)
```

With this change we handle such error and also hide stacktraces
```
./src/app/app.module.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Cannot use a JavaScript or TypeScript file (/Users/error-testing/src/app/app.component.ts) in a component's styleUrls or templateUrl.
    at /Users/error-testing/node_modules/@ngtools/webpack/src/ivy/loader.js:75:34
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
```
2021-12-02 16:42:16 +00:00
Renovate Bot
0e9ef9589d build: update angular 2021-12-02 16:41:23 +00:00
Renovate Bot
1a9da01b3a build: update all non-major dependencies 2021-11-29 11:17:36 -08:00
Alan Agius
b3f71c51bf fix(@ngtools/webpack): JIT mode CommonJS accessing inexistent default property
With this change we fix an issue in JIT mode were we try to access an inexistent `default` property of styles modules when emitted in CJS.

Also, we now emit templates modules without the default property when not targeting ES2015 or greater to normalize the how to `require` templates and styles.

Closes #21588
2021-11-29 10:30:56 -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
be32c9aa34 build: update angular 2021-11-18 21:13:31 +01:00
Renovate Bot
22f8e8a83a build: update all non-major dependencies 2021-11-17 09:32:28 +00:00
Renovate Bot
1e81b8d472 build: update angular 2021-11-16 10:52:12 +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
0d864a4239 build: update angular 2021-11-04 12:16:49 -04:00
Charles Lyding
e1bac5bbb3 fix(@angular-devkit/build-angular): update Angular peer dependencies to v13.1 prerelease
This change allows framework v13.1 prelease versions to be used with the Angular CLI 13.1 preleases without peer dependency warnings.
2021-11-04 12:15:13 -04:00