Rename index.mjs to _index.mjs in @babel/runtime (#12855)

This commit is contained in:
Nicolò Ribaudo
2021-02-23 02:08:41 +01:00
committed by GitHub
parent 5861704361
commit 0c65ff7a55
17 changed files with 497 additions and 494 deletions

View File

@@ -116,7 +116,7 @@ function writeHelperFile(
helperName,
{ esm, corejs }
) {
const filePath = path.join(helperPath, esm ? "index.mjs" : "index.js");
const filePath = path.join(helperPath, esm ? "_index.mjs" : "index.js");
const fullPath = path.join(pkgDirname, filePath);
outputFile(
@@ -130,7 +130,7 @@ function writeHelperFile(
function writeHelperLegacyESMFile(pkgDirname, helperName) {
const fullPath = path.join(pkgDirname, "helpers", "esm", `${helperName}.js`);
outputFile(fullPath, `export { default } from "../${helperName}/index.mjs"`);
outputFile(fullPath, `export { default } from "../${helperName}/_index.mjs"`);
}
function writeHelpers(runtimeName, { corejs } = {}) {