Skip to content

Commit cdc908a

Browse files
fixup: de-lint
1 parent 8da2484 commit cdc908a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lib/internal/modules/cjs/loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ function resolveExports(nmPath, request) {
633633
if (!name) { return; }
634634
const pkgPath = path.resolve(nmPath, name);
635635
const { data: pkg, path: pjsonPath } = _readPackage(pkgPath);
636-
if (pkg.type != 'none' && pkg.exports != null) {
636+
if (pkg.type !== 'none' && pkg.exports != null) {
637637
try {
638638
const { packageExportsResolve } = require('internal/modules/esm/resolve');
639639
return finalizeEsmResolution(packageExportsResolve(

lib/internal/modules/esm/resolve.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,12 @@ function packageResolve(specifier, base, conditions) {
818818
}
819819

820820
// Package match.
821-
const { data: packageConfig } = packageJsonReader.read(packageJSONPath, { __proto__: null, specifier, base, isESM: true });
821+
const { data: packageConfig } = packageJsonReader.read(packageJSONPath, {
822+
__proto__: null,
823+
base,
824+
isESM: true,
825+
specifier,
826+
});
822827
if (packageConfig.exports != null) {
823828
return packageExportsResolve(
824829
packageJSONUrl, packageSubpath, packageConfig, base, conditions);

0 commit comments

Comments
 (0)