Skip to content

Commit d28a58b

Browse files
committedJan 30, 2019
fix: entry file should not be marked as external
1 parent 6a8fa07 commit d28a58b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/plugins/node-resolve.ts

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ export default (options: Options) => {
4242
cwd: importer ? path.dirname(importer) : options.rootDir
4343
})
4444
} catch (err) {
45+
if (!importer) {
46+
// An entry file should not be marked as external if it doesn't exist
47+
return null
48+
}
4549
return false
4650
}
4751

0 commit comments

Comments
 (0)
Please sign in to comment.