Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed Jan 11, 2025
1 parent fb8961b commit fa79ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resolve-module.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
const resolveModule = (request, paths) => {
// eslint-disable-next-line no-inline-comments
const resolvePaths = require.resolve.paths("") /* c8 ignore next */ || [];
const resolvePaths = require.resolve?.paths?.("") /* c8 ignore next */ || [];
const allPaths = [ ...paths, ...resolvePaths ];
return require.resolve(request, { "paths": allPaths });
};
Expand Down

0 comments on commit fa79ab3

Please sign in to comment.