File tree 1 file changed +2
-2
lines changed
packages/@ngtools/webpack/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,10 +97,10 @@ function _removeModuleId(refactor: TypeScriptFileRefactor) {
97
97
refactor . findAstNodes ( sourceFile , ts . SyntaxKind . ObjectLiteralExpression , true )
98
98
// Get all their property assignments.
99
99
. filter ( ( node : ts . ObjectLiteralExpression ) =>
100
- node . properties . some ( prop => prop . name . getText ( ) == 'moduleId' ) )
100
+ node . properties . some ( prop => _getContentOfKeyLiteral ( sourceFile , prop . name ) == 'moduleId' ) )
101
101
. forEach ( ( node : ts . ObjectLiteralExpression ) => {
102
102
const moduleIdProp = node . properties . filter ( ( prop : ts . ObjectLiteralElement , idx : number ) => {
103
- return prop . name . getText ( ) == 'moduleId' ;
103
+ return _getContentOfKeyLiteral ( sourceFile , prop . name ) == 'moduleId' ;
104
104
} ) [ 0 ] ;
105
105
// get the trailing comma
106
106
const moduleIdCommaProp = moduleIdProp . parent . getChildAt ( 1 ) . getChildren ( ) [ 1 ] ;
You can’t perform that action at this time.
0 commit comments