Skip to content
  • Sponsor docsifyjs/docsify

  • Notifications You must be signed in to change notification settings
  • Fork 5.7k

Commit 3a22fa4

Browse files
committedJun 23, 2020
Add dependecy import location, error message changes
1 parent e8c68c0 commit 3a22fa4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎build/build.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ async function build(opts) {
3232
]),
3333
onwarn: function (message) {
3434
if (message.code === 'UNRESOLVED_IMPORT') {
35-
throw new Error(`Could not resolve module ` + message.source + `. Try running 'npm install'`)
35+
throw new Error(
36+
`Could not resolve module ` +
37+
message.source +
38+
`. Try running 'npm install' or using rollup's 'external' option if this is an external dependency. ` +
39+
`Module ${message.source} is imported in ${message.importer}`
40+
)
3641
}
3742
}
3843
})

0 commit comments

Comments
 (0)