Skip to content

Commit

Permalink
Estimated solution for docsify/docsify#1210
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed Jun 17, 2020
1 parent 714ef29 commit 3ff6737
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/build.js
Expand Up @@ -29,7 +29,12 @@ async function build(opts) {
__VERSION__: version,
'process.env.SSR': false
})
])
]),
onwarn(message) {
if (message.code === 'UNRESOLVED_IMPORT') {
throw new Error(`Could not resolved ${moessage.source}`)
}
}
})
.then(function (bundle) {
var dest = 'lib/' + (opts.output || opts.input)
Expand Down

0 comments on commit 3ff6737

Please sign in to comment.