Build: reduce experimental-cli size (#18255)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-11-17 22:45:14 +08:00
1 parent 35718f2993
commit bb6c853f39
1 file changed
+18
+18
View File
@@ -846,6 +846,24 @@ const nodejsFiles = [
replacement:
'new URL("./experimental-cli-worker.mjs", import.meta.url)',
},
{
module: getPackageFile("json5/dist/index.mjs"),
find: "export default lib;",
replacement: "export default { parse };",
},
{
module: getPackageFile("@prettier/cli/dist/config_prettier.js"),
find: 'const toml = await import("smol-toml");',
replacement: outdent`
const {parse} = await import("smol-toml");
const toml = {parse};
`,
},
{
module: getPackageFile("js-yaml/dist/js-yaml.mjs"),
find: "var dump = dumper.dump;",
replacement: "var dump;",
},
],
},
{