Clean standalone build script (#18614)
This commit is contained in:
1 parent
e9115b2b57
commit
09ce948ee3
1 file changed
-13
@@ -88,16 +88,6 @@ const mainModule = {
|
|||||||
{
|
{
|
||||||
module: require.resolve("@babel/code-frame"),
|
module: require.resolve("@babel/code-frame"),
|
||||||
process(text) {
|
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(
|
text = text.replaceAll(
|
||||||
/(?<=\n)let tokenize;\n\{\n.*?\n\}(?=\n)/gs,
|
/(?<=\n)let tokenize;\n\{\n.*?\n\}(?=\n)/gs,
|
||||||
"",
|
"",
|
||||||
@@ -131,9 +121,6 @@ const mainModule = {
|
|||||||
"const shouldHighlight = false;",
|
"const shouldHighlight = false;",
|
||||||
);
|
);
|
||||||
|
|
||||||
text = text.replaceAll("exports.default = index;", "");
|
|
||||||
text = text.replaceAll("exports.highlight = highlight;", "");
|
|
||||||
|
|
||||||
return text;
|
return text;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user