Skip to content

Commit

Permalink
fix(cjs): namespace filter to preserve file path
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Jun 30, 2024
1 parent da3bcb0 commit 6ef949c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cjs/api/module-extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export const createExtensions = (

const searchParams = new URLSearchParams(query);

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

// For tracking dependencies in watch mode
Expand Down

0 comments on commit 6ef949c

Please sign in to comment.