14 Commits

Author SHA1 Message Date
Charles Lyding
0db3a699d4 refactor(@angular-devkit/build-optimizer): update to use TypeScript 3.8 2020-03-02 14:05:31 -08:00
Filipe Silva
c3a4c454be fix(@angular-devkit/build-optimizer): update ɵsetClassMetadata call format
It's in a IIFE after https://github.com/angular/angular/pull/33337 lands.
2019-11-20 17:31:19 -08:00
Filipe Silva
7502b73b3c fix(@angular-devkit/build-optimizer): don't remove ɵɵsetNgModuleScope calls
These will be automatically removed after https://github.com/angular/angular/pull/33671 lands because they are in a side-effect free IIFE.
2019-11-20 17:31:19 -08:00
Alan Agius
ae36fbcd8e fix(@angular-devkit/build-optimizer): fix error when __decorate has no __metadata
When a `__decorator` expression has no `__metadata` call, example:

```js
__decorate([
    ContentChild('heading', { read: ElementRef, static: true })
], FooBarComponent.prototype, "buttons", void 0);
```

A `Cannot read property 'kind' of undefined` error will be thrown.

Closes: #15703
2019-10-01 11:23:54 -07:00
Filipe Silva
5564ce6ea1 feat(@angular-devkit/build-optimizer): scrub ɵsetClassMetadata and ɵɵsetNgModuleScope calls 2019-09-25 09:43:21 -07:00
Filipe Silva
b1f7537342 refactor(@angular-devkit/build-optimizer): refactor assignment expression identification 2019-09-25 09:43:21 -07:00
Filipe Silva
016977c9ff fix(@angular-devkit/build-optimizer): remove unecessary scrub file checks 2019-09-25 09:43:21 -07:00
Filipe Silva
4826378706 fix(@angular-devkit/build-angular): consider local decl in angular core files to be metadata too
Followup to https://github.com/angular/angular-cli/pull/15239, fixes a 6kb size regression in new apps, potentially more in larger apps.

Local declarations inside `@angular/core` files should also be considered metadata and scrubbed.
2019-08-08 08:28:20 -07:00
Filipe Silva
804c11de8d fix(@angular-devkit/build-optimizer): scrub all metadata form @angular/core
We used to keep a specifier list of known  specifiers to identify the `@angular/core` FESM. But it doesn't work for non-FESM bundles, and we already pass that information on anyway.
2019-08-02 13:35:39 -07:00
Filipe Silva
fefa2ef15c fix(@angular-devkit/build-optimizer): scrub previously whitelisted angular classes
This whitelist a leftover from older Angular versions and isn't necessary anymore.

Fix #15194
2019-08-02 13:35:39 -07:00
Filipe Silva
6f8c336346 fix(@angular-devkit/build-optimizer): identify relative imports in angular core
Build optimizer was broken for non-FESM files inside @angular/core because it couldn't identify relative imports were still inside core.

This change adds a known list of angular core files as a default, and also allows passing in a override.
2019-01-18 12:01:37 -08:00
Charles Lyding
5890759a9f fix(@angular-devkit/build-optimizer): deprecate transform test functions
These were not intended to be part of the public API and will eventually be removed completely.
2018-09-19 11:34:02 -07:00
Filipe Silva
6076e16ebc feat(@angular-devkit/build-optimizer): remove constructor __param 2018-09-06 08:18:41 -07:00
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00