Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Oct 17, 2022
1 parent ae2fb9a commit a379f5c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Gulpfile.mjs
Expand Up @@ -465,9 +465,9 @@ function buildRollup(packages, buildStandalone) {

// Some syntax plugins have been archived
if (id.includes("plugin-syntax")) {
const srcPath = new URL(
"./packages/" + id.replace("@babel/", "babel-"),
import.meta.url
const srcPath = path.join(
path.dirname(fileURLToPath(import.meta.url)),
"/packages/" + id.replace("@babel/", "babel-")
);
if (!fs.existsSync(srcPath)) return "compat";
}
Expand All @@ -476,7 +476,7 @@ function buildRollup(packages, buildStandalone) {
return "compat";
}

return "esModule";
return "auto";
},
});

Expand Down

0 comments on commit a379f5c

Please sign in to comment.