Scoped: updated numerous docs with scoped packages change [skip ci]

This commit is contained in:
Mateusz Burzyński
2017-10-17 00:28:03 +02:00
committed by Henry Zhu
parent 919bdf5e79
commit 859ea4b175
35 changed files with 80 additions and 87 deletions

View File

@@ -63,7 +63,7 @@ function adjustImportPath(node, relativePath) {
if (helpers.list.indexOf(node.value) >= 0) {
node.value = `./${node.value}`;
} else {
node.value = node.value.replace(/^babel-runtime/, relativePath)
node.value = node.value.replace(/^@babel\/runtime/, relativePath);
}
}
@@ -91,7 +91,7 @@ function buildRuntimeRewritePlugin(relativePath, helperName, dependencies) {
return;
}
// replace any reference to babel-runtime and other helpers
// replace any reference to @babel/runtime and other helpers
// with a relative path
adjustImportPath(path.get("arguments")[0].node, relativePath);
},