File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/ngtools/webpack/src Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -981,8 +981,11 @@ export class AngularCompilerPlugin {
981
981
// This is required to support forwardRef in ES2015 due to TDZ issues
982
982
this . _transformers . push ( downlevelConstructorParameters ( getTypeChecker ) ) ;
983
983
} else {
984
- // Remove unneeded angular decorators.
985
- this . _transformers . push ( removeDecorators ( isAppPath , getTypeChecker ) ) ;
984
+ if ( ! this . _compilerOptions . enableIvy ) {
985
+ // Remove unneeded angular decorators in VE.
986
+ // In Ivy they are removed in ngc directly.
987
+ this . _transformers . push ( removeDecorators ( isAppPath , getTypeChecker ) ) ;
988
+ }
986
989
// Import ngfactory in loadChildren import syntax
987
990
if ( this . _useFactories ) {
988
991
// Only transform imports to use factories with View Engine.
You can’t perform that action at this time.
0 commit comments