Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit 324211c

Browse files
committed
fix test
1 parent 01ed123 commit 324211c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default function nodeResolve ( options = {} ) {
9292
}
9393
}
9494

95-
if ( options.modulesOnly ) {
95+
if ( resolved && options.modulesOnly ) {
9696
fs.readFile( resolved, 'utf-8', ( err, code ) => {
9797
if ( err ) {
9898
reject( err );

0 commit comments

Comments
 (0)