Strip location information from import remaps

Fixes https://phabricator.babeljs.io/T6851
This commit is contained in:
kpdecker
2015-12-18 01:13:28 -06:00
parent 94e7e4da8e
commit 3791491b79
6 changed files with 59 additions and 4 deletions

View File

@@ -330,7 +330,7 @@ export default function () {
]));
}
}
remaps[specifier.local.name] = t.memberExpression(target, specifier.imported);
remaps[specifier.local.name] = t.memberExpression(target, t.cloneWithoutLoc(specifier.imported));
}
}
} else {