Skip to content

Commit 3ff6737

Browse files
authored
Estimated solution for docsify/docsify#1210
docsifyjs#1210
1 parent 714ef29 commit 3ff6737

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: build/build.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ async function build(opts) {
2929
__VERSION__: version,
3030
'process.env.SSR': false
3131
})
32-
])
32+
]),
33+
onwarn(message) {
34+
if (message.code === 'UNRESOLVED_IMPORT') {
35+
throw new Error(`Could not resolved ${moessage.source}`)
36+
}
37+
}
3338
})
3439
.then(function (bundle) {
3540
var dest = 'lib/' + (opts.output || opts.input)

0 commit comments

Comments
 (0)