We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd840b2 commit 722c3cbCopy full SHA for 722c3cb
packages/ngtools/webpack/src/angular_compiler_plugin.ts
@@ -981,8 +981,11 @@ export class AngularCompilerPlugin {
981
// This is required to support forwardRef in ES2015 due to TDZ issues
982
this._transformers.push(downlevelConstructorParameters(getTypeChecker));
983
} else {
984
- // Remove unneeded angular decorators.
985
- this._transformers.push(removeDecorators(isAppPath, getTypeChecker));
+ if (!this._compilerOptions.enableIvy) {
+ // Remove unneeded angular decorators in VE.
986
+ // In Ivy they are removed in ngc directly.
987
+ this._transformers.push(removeDecorators(isAppPath, getTypeChecker));
988
+ }
989
// Import ngfactory in loadChildren import syntax
990
if (this._useFactories) {
991
// Only transform imports to use factories with View Engine.
0 commit comments