Closed mikew closed 5 years ago
Looks like _resolveFilename actually takes 4 arguments:
_resolveFilename
> m._resolveFilename.toString() 'function(request, parent, isMain, options) ...'
Without passing that options argument, require.resolve(something, { paths: [] }) breaks.
require.resolve(something, { paths: [] })
I've made a sample repository here: https://github.com/mikew/module-alias-issue
Fixed by #64
Looks like
_resolveFilename
actually takes 4 arguments:Without passing that options argument,
require.resolve(something, { paths: [] })
breaks.I've made a sample repository here: https://github.com/mikew/module-alias-issue