Clean bundle script (#17122)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-02-16 15:36:17 +08:00
1 parent b72a37c51e
commit bd93b8efc3
1 file changed
-12
-12
View File
@@ -40,18 +40,6 @@ function getEsbuildOptions({ file, files, cliOptions }) {
file.dependencies = [];
const replaceModule = [
// Use `require` directly
{
module: "*",
find: "const require = createRequire(import.meta.url);",
replacement: "",
},
// Use `__dirname` directly
{
module: "*",
find: "const __dirname = path.dirname(fileURLToPath(import.meta.url));",
replacement: "",
},
/*
`jest-docblock` try to detect new line in code, and it will fallback to `os.EOL`,
We already replaced line end to `\n` before calling it