147 Commits

Author SHA1 Message Date
Renovate Bot
635c61507f build: update typescript to version 4.1.5 2021-02-11 12:34:17 -05:00
Renovate Bot
6306872968 build: update typescript to version 4.1.4 2021-02-10 11:18:01 -05:00
Alan Agius
4453bb1ab9 refactor(@angular-devkit/build-optimizer): replace deprecated TypeScript methods 2021-01-25 09:21:53 -06:00
Renovate Bot
d56179af1b build: update tslib to version 2.1.0 2021-01-06 12:01:26 +00:00
Renovate Bot
0f06d11fb6 build: update typescript to version 4.1.3 2020-12-16 13:54:07 +00:00
Charles Lyding
6e15005fca build: use TypeScript 4.1 2020-12-03 16:43:39 -05:00
Renovate Bot
d024cea655 build: update webpack-sources to version 2.2.0 2020-11-12 15:25:28 -05:00
Charles Lyding
bb370f0086 fix(@angular-devkit/build-optimizer): mark rxjs add imports as having side effects
This change prevents the build optimizer from removing the operator add imports from the rxjs package (for example, `import 'rxjs/add/operator/filter';`).  The entire rxjs package is currently marked as side effect free from within the rxjs `package.json` but the files in the add directory intentionally contain side effects.
2020-11-02 13:36:27 -06:00
Charles Lyding
1f5861c937 fix(@angular-devkit/build-optimizer): set rxjs as having safe side effects
The rxjs package contains module level side effects that are not marked with a pure annotation.  However, these side effects are safe to remove if the values are unused.
2020-10-27 12:05:11 -04:00
Renovate Bot
74783b919b build: update typescript to version 4.0.5 2020-10-27 09:52:42 -04:00
Charles Lyding
2f456778c7 fix(@angular-devkit/build-optimizer): support jit mode guarded class metadata removal
This adds support for the alternate emit form of `ɵsetClassMetadata` that is guarded by `ngJitMode` instead of a pure annotation.
2020-10-15 13:53:25 +02:00
Charles Lyding
4b4822f2c5 fix(@angular-devkit/build-optimizer): increase safety of code removal
This change lowers the potential for code to be errantly removed by the prefix functions and scrub file transformers.  Only known safe modules are used with the prefix functions transformer as it can easily remove required module level side effects (as opposed to global level side effects) such as `__decorate` calls.
The scrub file transformer will now keep metadata if non-Angular decorators are present. This allows libraries that use that information to continue to function.

Closes #14033
Closes #18621
2020-10-12 11:04:14 -04:00
Renovate Bot
795847c9e0 build: update tslib to version 2.0.3 2020-10-12 11:02:46 -04:00
Alan Agius
ee9e4dd0a7 refactor(@angular-devkit/build-optimizer): remove old checks
- @angular/core package no longer contain ESM5 and FESM5 entrypoints
- ngfactory/ngstyle file extension is always .js
2020-10-09 13:12:58 -04:00
Renovate Bot
6d7f038de5 build: update tslib to version 2.0.2 2020-10-07 09:24:28 -04:00
Renovate Bot
aaa7c82cfb build: update webpack-sources to version 2.0.1 2020-09-28 19:38:42 +02:00
Joey Perrott
25aa2d5929 refactor: remove usages of the term whitelist 2020-09-24 00:07:10 +03:00
Renovate Bot
f6538bd5a6 build: update typescript to version 4.0.3 2020-09-22 10:28:42 -05:00
Alan Agius
2586a0e9a2 fix(@angular-devkit/build-optimizer): remove decorators calls when tslib helpers are inlined
Closes #18682
2020-09-08 20:56:19 +02:00
Alan Agius
f665c466c2 refactor(@angular-devkit/build-optimizer): use type guards in scrub file 2020-09-03 00:21:26 +03:00
Alan Agius
50d559d73d refactor(@angular-devkit/build-optimizer): remove tsickle code from wrap-enums transformer
Angular packages are no longer annotated for Closure Compiler using Tsickle, therefore these checks are now redundant.
2020-09-03 00:21:26 +03:00
Alan Agius
ab62c7a5e8 refactor(@angular-devkit/build-optimizer): refactor tests and logic to use non legacy tslib imports syntax
Tslib is no longer imported using namespace imports, with this change we update the logic to use named imports.
2020-08-26 13:12:45 -04:00
Alan Agius
e49c92660f refactor(@angular-devkit/build-optimizer): refactor scrub file to use typeguards 2020-08-26 13:12:45 -04:00
Alan Agius
425b160b52 build: update to TypeScript 4 2020-08-25 04:27:40 -04:00
Alan Agius
c8859810c4 build: remove vendored typescript from build optimizer 2020-08-25 04:27:40 -04:00
Alan Agius
d1adba1347 build: update build_bazel_rules_nodejs to 2.0.2 2020-08-19 16:00:07 +02:00
Charles Lyding
fa9a648cae fix(@angular-devkit/build-optimizer): handle undefined factoryMeta in Webpack plugin
A Webpack module's `factoryMeta` property is not guaranteed to be defined.  This change ensures that the build optimizer skip property is added even in the case of no `factoryMeta` currently defined.
2020-08-12 19:27:00 +01:00
Charles Lyding
76b1b53a4b refactor(@angular-devkit/build-optimizer): verify Program for type-checking passes 2020-08-12 19:26:53 +01:00
Renovate Bot
282dd66cfb build: update tslib to version 2.0.1 2020-08-10 09:44:20 +01:00
Keen Yee Liau
fa9136a971 build: minor fixes for google3 sync
This commit makes a few minor changes to enable syncing the CLI repository
into google3.

1. mark pkg_tar and pkg_npm as external
2. remove dependencies (marked as comment) which are stale in google3
3. remove TS files generated from JSON schema in BUILD files since these
   files are compiled and added to the g3 codebase at sync time
4. Some minor typing changes
5. Remove duplicate licenses
6. mark dependencies which are not available in g3 as external
7. Immediately type the result of JSON.parse() as required by g3 linter.
   Otherwise, the type defaults to `any`.
2020-07-24 22:52:22 +02:00
Renovate Bot
f59fba5ebb build: update tslib to version 2.0.0 2020-05-19 10:56:01 +01:00
Renovate Bot
63455d2e86 build: update tslib to version 1.12.0 2020-05-13 10:12:02 -04:00
Alan Agius
56ffa1c7b2 build: vendor typescript 3.6 in build optimizer
With this change we "vendor" TypeScript 3.6 in build optimizer instead of using directly the npm package.

Reasons:
- We cannot update to a more recent version of TypeScript due to https://github.com/microsoft/TypeScript/issues/38412
- Yarn workspace are not supported under Bazel. This means currently we are running unit testswhich uses a different TypeScript version at runtime.
- In TypeScript 3.9, the shape of ES2015 classes changed https://github.com/microsoft/TypeScript/pull/32011, this requires some changes in the UT expects, but this again will not be correct to change now.
2020-05-11 07:45:58 -04:00
Renovate Bot
b8f4edaabb build: update tslib to version 1.11.2 2020-05-08 13:06:32 -07:00
Charles Lyding
164094829d refactor(@angular-devkit/build-optimizer): removed deprecated/unused passes
BREAKING CHANGE
Deprecated and outdated optimization passes class fold and import tslib have been removed.

Note: This change only effects direct @angular-devkit/schematics users and not the application developers.
2020-05-04 10:54:48 -07:00
Charles Lyding
432aade7ad refactor(@angular-devkit/build-optimizer): remove errant deprecations
These functions are not public and are also used internally.
2020-05-04 10:54:48 -07:00
Greg Magolan
be3d063422 build: exclude nested node_modules laid out by yarn workspaces from all globs 2020-04-30 15:12:46 -07:00
Filipe Silva
b51cf8d1e6 build: use ts_library macro with common defaults 2020-04-30 15:12:46 -07:00
Filipe Silva
9a28114f6b test: remove non-bazel test setup 2020-04-30 15:12:46 -07:00
Filipe Silva
eceb5cdaa6 build: use rules_nodejs 1.6.0 features
Contains fixes related to the symlink behaviour inside of bazel. Without it, webpack needs to be configured to be aware of symlinks and preserve the paths.
2020-04-30 15:12:46 -07:00
Keen Yee Liau
e5db6a8ccd build: BUILD files formatted to have load statements at the top 2020-04-23 10:31:56 -07:00
Filipe Silva
60e92d54fb style: reformat bazel files 2020-04-07 09:07:19 -07:00
Filipe Silva
55cd9bbb06 build: include json files in @angular-devkit/build-optimizer Bazel build 2020-04-07 09:07:19 -07:00
Filipe Silva
f2d2cd12c4 build: also produce tar.gz for bazel npm_package rules 2020-04-07 09:07:19 -07:00
Filipe Silva
b668cacd45 refactor: use BUILD.bazel instead of BUILD
Using an extension gives editors a chance to figure out the correct language syntax to use.
2020-04-07 09:07:19 -07:00
Filipe Silva
456bbffee5 build: add module_name to @angular-devkit/build-optimizer Bazel rule 2020-04-07 09:07:19 -07:00
Charles Lyding
6e33f447a6 refactor(@angular-devkit/build-optimizer): remove casts from tslib helper check 2020-04-06 09:55:58 -07:00
Charles Lyding
4509d3c112 fix(@angular-devkit/build-optimizer): use TypeScript 3.6
Fixes: #17320
2020-04-06 09:55:58 -07:00
Renovate Bot
de68dab2c6 build: update loader-utils to version 2.0.0 2020-03-19 09:47:50 -07:00
Renovate Bot
b5a475d3d4 build: update typescript to version 3.8.3 2020-03-03 13:37:35 -08:00