Skip to content

Commit

Permalink
fix: pass pathContext to DefaultResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
blakebyrnes committed May 3, 2023
1 parent 294ce23 commit 1b8b855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resolver-compat.js
Expand Up @@ -335,7 +335,7 @@ function resolverFromOptions(vm, options, override, compiler) {
}

if (typeof externalOpt !== 'object') {
return new DefaultResolver(fsOpt, builtins, checkPath, [], () => context, newCustomResolver, hostRequire, compiler, strict);
return new DefaultResolver(fsOpt, builtins, checkPath, [], pathContext, newCustomResolver, hostRequire, compiler, strict);
}

let transitive = false;
Expand Down

0 comments on commit 1b8b855

Please sign in to comment.