Skip to content

Commit

Permalink
fix internal webpack resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Feb 15, 2023
1 parent 08c892b commit 6861242
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/webpack/src/webpack-resolver-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ class WebpackModuleRequest implements ModuleRequest {
typeof state.context === 'string' &&
typeof state.contextInfo?.issuer === 'string' &&
state.contextInfo.issuer !== '' &&
!state.request.startsWith(virtualLoaderName) // prevents recursion on requests we have already sent to our virtual loader
!state.request.startsWith(virtualLoaderName) && // prevents recursion on requests we have already sent to our virtual loader
!state.request.startsWith('!') // ignores internal webpack resolvers
) {
return new WebpackModuleRequest(state);
}
Expand Down

0 comments on commit 6861242

Please sign in to comment.