We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b02177 commit 3673001Copy full SHA for 3673001
build/build.js
@@ -29,7 +29,17 @@ async function build(opts) {
29
__VERSION__: version,
30
'process.env.SSR': false
31
})
32
- ])
+ ]),
33
+ onwarn: function (message) {
34
+ if (message.code === 'UNRESOLVED_IMPORT') {
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
+ )
41
+ }
42
43
44
.then(function (bundle) {
45
var dest = 'lib/' + (opts.output || opts.input)
0 commit comments