Stop mutating nodes (#5963)

* Stop mutating nodes

* Update tests

* linting
This commit is contained in:
Justin Ridgewell
2017-07-18 13:24:07 -04:00
committed by GitHub
parent aa684d1b0c
commit 28ae47a174
34 changed files with 83 additions and 275 deletions

View File

@@ -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(