Scoped: updated numerous docs with scoped packages change [skip ci]
This commit is contained in:
committed by
Henry Zhu
parent
919bdf5e79
commit
859ea4b175
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user