8 Commits

Author SHA1 Message Date
Charles Lyding
e33a3061f0 feat(@schematics/angular): migrate web workers to support Webpack 5
Webpack 5 now includes web worker support. However, the structure of the URL within the `Worker` constructor must be in a specific format.
A migration has been added for Angular v12 that will convert web workers from the old structure to the new structure.
Before: `new Worker('./app.worker', ...)`
After: `new Worker(new URL('./app.worker', import.meta.url), ...)`
2021-04-14 19:34:21 -04:00
Alan Agius
36a8882ab3 refactor(@schematics/angular): remove migration of non LTS versions
With this change we remove migrations for non LTS version of Angular CLI.
2021-04-14 17:20:33 -04:00
Alan Agius
c7e126609f feat(@schematics/angular): add production by default optional migration
With this change we add an optional migration to update Angular CLI workspace configurations to 'production' mode by default.

To run this migration use the below commands
```
ng update @angular/cli
ng update @angular/cli --migrate-only production-by-default
```
2021-03-24 09:16:50 -04:00
Alan Agius
f4875b967a feat(@schematics/angular): add migration to remove lazyModules configuration option 2021-03-10 12:44:04 -06:00
Alan Agius
96a4467ce9 feat(@schematics/angular): add migration to remove emitDecoratorMetadata
Add migration to remove 'emitDecoratorMetadata' TypeScript compiler option. Decorator metadata is no longer needed by Angular.

Read more about this option here: https://www.typescriptlang.org/docs/handbook/decorators.html#metadata
2021-02-18 19:27:30 +01:00
Alan Agius
7d57dd2f3e feat(@schematics/angular): add migration to use new zone.js entry-points 2021-02-17 12:44:43 -06:00
Charles Lyding
575b1a75b1 fix(@schematics/angular): only update removed v12 options in migration 2021-02-11 07:42:16 -05:00
Alan Agius
f424529d9c feat(@schematics/angular): add migration to remove deprecated options from 'angular.json' 2021-02-09 08:50:00 -05:00