Skip to content

Commit 2058163

Browse files
committed
fix: fix CompileError
1 parent e58992f commit 2058163

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build/build.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ async function build(opts) {
2222
.rollup({
2323
input: opts.input,
2424
plugins: (opts.plugins || []).concat([
25-
buble(),
25+
buble({
26+
transforms: {
27+
dangerousForOf: true
28+
}}),
2629
commonjs(),
2730
nodeResolve(),
2831
replace({
@@ -33,8 +36,8 @@ async function build(opts) {
3336
onwarn: function (message) {
3437
if (message.code === 'UNRESOLVED_IMPORT') {
3538
throw new Error(
36-
`Could not resolve module ` +
37-
message.source +
39+
`Could not resolve module ` +
40+
message.source +
3841
`. Try running 'npm install' or using rollup's 'external' option if this is an external dependency. ` +
3942
`Module ${message.source} is imported in ${message.importer}`
4043
)

0 commit comments

Comments
 (0)