From ff2668df5cc219ee7d3a817ea96e6718a66befa1 Mon Sep 17 00:00:00 2001 From: Hao Yunfei Date: Wed, 5 Jan 2022 02:37:20 +0800 Subject: [PATCH] Ignore 'this is undefined' warning in rollup bundle building (#5957) --- tools/rollup_template.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/rollup_template.config.js b/tools/rollup_template.config.js index a038af587..9a1a5880d 100644 --- a/tools/rollup_template.config.js +++ b/tools/rollup_template.config.js @@ -102,4 +102,10 @@ export default { template: 'sunburst', }), ], + onwarn: function (warning) { + if (warning.code === 'THIS_IS_UNDEFINED') { + return; + } + console.warn(warning.message); + } }