Skip to content

Commit 1b35985

Browse files
authored
Fix --bundle=false on Windows (#51459)
1 parent b4715d3 commit 1b35985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Herebyfile.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function entrypointBuildTask(options) {
320320
const outDir = path.dirname(options.output);
321321
await fs.promises.mkdir(outDir, { recursive: true });
322322
const moduleSpecifier = path.relative(outDir, options.builtEntrypoint);
323-
await fs.promises.writeFile(options.output, `module.exports = require("./${moduleSpecifier}")`);
323+
await fs.promises.writeFile(options.output, `module.exports = require("./${moduleSpecifier.replace(/[\\/]/g, "/")}")`);
324324
},
325325
});
326326

0 commit comments

Comments
 (0)