From 09ce948ee32ca783fbe6a4c534b590b31100dada Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Tue, 13 Jan 2026 05:45:06 +0800 Subject: [PATCH] Clean standalone build script (#18614) --- scripts/build/packages/prettier.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/scripts/build/packages/prettier.js b/scripts/build/packages/prettier.js index 552c7055a..e2eb1bb28 100644 --- a/scripts/build/packages/prettier.js +++ b/scripts/build/packages/prettier.js @@ -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; }, },