We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8c68c0 commit 3a22fa4Copy full SHA for 3a22fa4
build/build.js
@@ -32,7 +32,12 @@ async function build(opts) {
32
]),
33
onwarn: function (message) {
34
if (message.code === 'UNRESOLVED_IMPORT') {
35
- throw new Error(`Could not resolve module ` + message.source + `. Try running 'npm install'`)
+ 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
+ )
41
}
42
43
})
0 commit comments