Skip to content

Commit 2091408

Browse files
committed
fix rollup warning for this
1 parent d62e137 commit 2091408

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/js/rollup.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,15 @@ export default {
1919
),
2020
}),
2121
],
22+
onwarn: function (warning) {
23+
// Skip certain warnings
24+
25+
// should intercept ... but doesn't in some rollup versions
26+
if (warning.code === "THIS_IS_UNDEFINED") {
27+
return;
28+
}
29+
30+
// console.warn everything else
31+
console.warn(warning.message);
32+
},
2233
};

0 commit comments

Comments
 (0)