Skip to content

Commit

Permalink
fix: pass package type to loader runner
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Dec 1, 2021
1 parent f07a3b8 commit c960b4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/NormalModuleFactory.js
Expand Up @@ -991,7 +991,7 @@ If changing the source code is not an option there is also a resolve options cal
context,
item.loader,
resolveContext,
(err, result) => {
(err, result, resolveRequest) => {
if (
err &&
/^[^/]*$/.test(item.loader) &&
Expand Down Expand Up @@ -1020,6 +1020,7 @@ If changing the source code is not an option there is also a resolve options cal
const parsedResult = identToLoaderRequest(result);
const resolved = {
loader: parsedResult.loader,
type: resolveRequest.descriptionFileData.type,
options:
item.options === undefined
? parsedResult.options
Expand Down

0 comments on commit c960b4f

Please sign in to comment.