From 1b35985f4fd962747139be0c95f4f06987e41c87 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 8 Nov 2022 15:20:22 -0800 Subject: [PATCH] Fix --bundle=false on Windows (#51459) --- Herebyfile.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Herebyfile.mjs b/Herebyfile.mjs index c58d330b624..b143a99d3af 100644 --- a/Herebyfile.mjs +++ b/Herebyfile.mjs @@ -320,7 +320,7 @@ function entrypointBuildTask(options) { const outDir = path.dirname(options.output); await fs.promises.mkdir(outDir, { recursive: true }); const moduleSpecifier = path.relative(outDir, options.builtEntrypoint); - await fs.promises.writeFile(options.output, `module.exports = require("./${moduleSpecifier}")`); + await fs.promises.writeFile(options.output, `module.exports = require("./${moduleSpecifier.replace(/[\\/]/g, "/")}")`); }, });