Skip to content

Commit

Permalink
update to pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblehead committed Jan 24, 2025
1 parent 9a001ed commit b996a91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resolvewithplus.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,9 @@ const esmparse = (spec, specifier, opts = {}) => {
// if dynamic 'spectype', lookup 'commonjs' or 'module'
// according to package.json
specname = specname === spectype
? (getspectypenamedexportdefault(specifier)
|| getspectypenamedexportdefault(opts.packagejsontype))
? isDirPathRe.test(specifier)
? getspectypenamedexportdefault(opts.packagejsontype)
: specifier
: specname,
esmparse(spec[specname], specifier, opts))
), false)
Expand Down

0 comments on commit b996a91

Please sign in to comment.