Skip to content

Commit 6ef949c

Browse files
committedJun 30, 2024
fix(cjs): namespace filter to preserve file path
1 parent da3bcb0 commit 6ef949c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/cjs/api/module-extensions.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ export const createExtensions = (
8686

8787
const searchParams = new URLSearchParams(query);
8888

89-
// If request namespace doesnt match the namespace, ignore
89+
// If request namespace doesnt match the namespace, ignore
9090
if ((searchParams.get('namespace') ?? undefined) !== namespace) {
91-
return defaultLoader(module, cleanFilePath);
91+
return defaultLoader(module, filePath);
9292
}
9393

9494
// For tracking dependencies in watch mode

0 commit comments

Comments
 (0)
Please sign in to comment.