Skip to content

Commit

Permalink
Use the platform-dependent path separator to fix QwikDev#108
Browse files Browse the repository at this point in the history
  • Loading branch information
igrep committed Dec 31, 2021
1 parent f8394c6 commit f00b11a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/optimizer/src/rollup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export function qwikRollup(opts: QwikPluginOptions = {}): any {
result = await optimizer.transformFs(transformOpts);
result.modules.forEach((output) => {
const path = output.path.split('.').slice(0, -1).join('.');
const key = transformOpts.rootDir + '/' + path;
const sep = optimizer?.path?.sep || '/';
const key = transformOpts.rootDir + sep + path;
transformedOutputs.set(key, output);
});

Expand Down

0 comments on commit f00b11a

Please sign in to comment.