Clean standalone build script (#18614)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-01-13 05:45:06 +08:00
1 parent e9115b2b57
commit 09ce948ee3
1 file changed
-13
-13
View File
@@ -88,16 +88,6 @@ const mainModule = {
{
module: require.resolve("@babel/code-frame"),
process(text) {
text = text.replaceAll(
"var picocolors = require('picocolors');",
"",
);
text = text.replaceAll("var jsTokens = require('js-tokens');", "");
text = text.replaceAll(
"var helperValidatorIdentifier = require('@babel/helper-validator-identifier');",
"",
);
text = text.replaceAll(
/(?<=\n)let tokenize;\n\{\n.*?\n\}(?=\n)/gs,
"",
@@ -131,9 +121,6 @@ const mainModule = {
"const shouldHighlight = false;",
);
text = text.replaceAll("exports.default = index;", "");
text = text.replaceAll("exports.highlight = highlight;", "");
return text;
},
},