Skip to content

Commit

Permalink
fix: use the platform-dependent path separator (#128)
Browse files Browse the repository at this point in the history
fixes #108
  • Loading branch information
igrep committed Jan 3, 2022
1 parent 63b66fd commit a6e8e23
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 a6e8e23

Please sign in to comment.