We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4715d3 commit 1b35985Copy full SHA for 1b35985
Herebyfile.mjs
@@ -320,7 +320,7 @@ function entrypointBuildTask(options) {
320
const outDir = path.dirname(options.output);
321
await fs.promises.mkdir(outDir, { recursive: true });
322
const moduleSpecifier = path.relative(outDir, options.builtEntrypoint);
323
- await fs.promises.writeFile(options.output, `module.exports = require("./${moduleSpecifier}")`);
+ await fs.promises.writeFile(options.output, `module.exports = require("./${moduleSpecifier.replace(/[\\/]/g, "/")}")`);
324
},
325
});
326
0 commit comments