Skip to content

Commit

Permalink
fix: fix CompileError
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Aug 13, 2020
1 parent e58992f commit 2058163
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ async function build(opts) {
.rollup({
input: opts.input,
plugins: (opts.plugins || []).concat([
buble(),
buble({
transforms: {
dangerousForOf: true
}}),
commonjs(),
nodeResolve(),
replace({
Expand All @@ -33,8 +36,8 @@ async function build(opts) {
onwarn: function (message) {
if (message.code === 'UNRESOLVED_IMPORT') {
throw new Error(
`Could not resolve module ` +
message.source +
`Could not resolve module ` +
message.source +
`. Try running 'npm install' or using rollup's 'external' option if this is an external dependency. ` +
`Module ${message.source} is imported in ${message.importer}`
)
Expand Down

0 comments on commit 2058163

Please sign in to comment.