Stop mutating nodes (#5963)
* Stop mutating nodes * Update tests * linting
This commit is contained in:
@@ -5,7 +5,6 @@ export default function({ types: t }) {
|
||||
exit(path) {
|
||||
const { node } = path;
|
||||
if (!node.id) return;
|
||||
node._ignoreUserWhitespace = true;
|
||||
|
||||
path.replaceWith(
|
||||
t.callExpression(
|
||||
|
||||
Reference in New Issue
Block a user