mirror of https://github.com/tensorflow/tfjs.git
Ignore 'this is undefined' warning in rollup bundle building (#5957)
This commit is contained in:
parent
745ecca163
commit
ff2668df5c
|
|
@ -102,4 +102,10 @@ export default {
|
|||
template: 'sunburst',
|
||||
}),
|
||||
],
|
||||
onwarn: function (warning) {
|
||||
if (warning.code === 'THIS_IS_UNDEFINED') {
|
||||
return;
|
||||
}
|
||||
console.warn(warning.message);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue