Update babel to v8.0.0-rc.1 (#18822)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-02-01 08:57:18 +08:00
1 parent cc38e7430d
commit 88ee8a5b3e
21 files changed
+301 -177

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
const fs = require("node:fs");
const path = require("node:path");
function setupVscode() {
const settingsFile = path.join(__dirname, "../../.vscode/settings.json");
const settingsExampleFile = path.join(
__dirname,
"../../.vscode/settings.example.json",
);
if (fs.existsSync(settingsFile) || !fs.existsSync(settingsExampleFile)) {
return;
}
fs.copyFileSync(settingsExampleFile, settingsFile);
}
async function buildBabelCodeFrameForTest() {
const { buildBabelCodeFrameForTest } =
await import("../../scripts/build-babel-code-frame-for-test.js");
await buildBabelCodeFrameForTest();
}
module.exports = {
name: "plugin-prepare",
factory: () => ({
hooks: {
async afterAllInstalled() {
setupVscode();
await buildBabelCodeFrameForTest();
},
},
}),
};
-30
View File
@@ -1,30 +0,0 @@
const fs = require("node:fs");
const path = require("node:path");
module.exports = {
name: "plugin-setup-editor",
factory: () => ({
hooks: {
afterAllInstalled() {
const settingsFile = path.join(
__dirname,
"../../.vscode/settings.json",
);
const settingsExampleFile = path.join(
__dirname,
"../../.vscode/settings.example.json",
);
if (
fs.existsSync(settingsFile) ||
!fs.existsSync(settingsExampleFile)
) {
return;
}
fs.copyFileSync(settingsExampleFile, settingsFile);
},
},
}),
};