Skip to content

Commit 6a7e662

Browse files
committedMay 31, 2019
chore: use replaceWith
1 parent 55d237b commit 6a7e662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/utils/ast-utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ function parseMerge(j: JSCodeshift, ast: Node, value: string[], action: string):
653653
`const ${configIdentifier} = require('${configPath}')`,
654654
`const merge = require('webpack-merge')`
655655
];
656-
ast = addMergeImports(ast, mergeImports);
656+
ast.replaceWith(addMergeImports(ast, mergeImports));
657657
return ast.find(j.Program).filter((p: Node): boolean => createMergeProperty(p, configIdentifier));
658658
} else {
659659
return ast;

0 commit comments

Comments
 (0)
Please sign in to comment.