Ignore 'this is undefined' warning in rollup bundle building (#5957)

This commit is contained in:
Hao Yunfei 2022-01-05 02:37:20 +08:00 committed by GitHub
parent 745ecca163
commit ff2668df5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -102,4 +102,10 @@ export default {
template: 'sunburst',
}),
],
onwarn: function (warning) {
if (warning.code === 'THIS_IS_UNDEFINED') {
return;
}
console.warn(warning.message);
}
}