From a379f5c90125a81967a731e37863c0f5d40b7253 Mon Sep 17 00:00:00 2001 From: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com> Date: Mon, 17 Oct 2022 21:52:06 +0800 Subject: [PATCH] fix --- Gulpfile.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Gulpfile.mjs b/Gulpfile.mjs index fc8da3d68c7e..d5af0c5ddaa4 100644 --- a/Gulpfile.mjs +++ b/Gulpfile.mjs @@ -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"; } @@ -476,7 +476,7 @@ function buildRollup(packages, buildStandalone) { return "compat"; } - return "esModule"; + return "auto"; }, });