From f00b11a43bcdbdd7eb766394525a729fff85cf4d Mon Sep 17 00:00:00 2001 From: YAMAMOTO Yuji Date: Fri, 31 Dec 2021 11:12:48 +0900 Subject: [PATCH] Use the platform-dependent path separator to fix https://github.com/BuilderIO/qwik/issues/108 --- src/optimizer/src/rollup/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/optimizer/src/rollup/index.ts b/src/optimizer/src/rollup/index.ts index 17ca39f09e7..e7e9fd45a04 100644 --- a/src/optimizer/src/rollup/index.ts +++ b/src/optimizer/src/rollup/index.ts @@ -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); });