Skip to content

Commit

Permalink
ignore resolve requests that start with !
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Feb 14, 2023
1 parent 4f583c9 commit 97d301f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack/src/webpack-resolver-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class EmbroiderPlugin {

nmf.hooks.resolve.tapAsync({ name: '@embroider/webpack', stage: 50 }, (state: unknown, callback: CB) => {
let request = WebpackModuleRequest.from(state);
if (!request) {
if (!request || request.specifier.startsWith('!')) {
defaultResolve(state, callback);
return;
}
Expand Down

0 comments on commit 97d301f

Please sign in to comment.