Skip to content

Commit

Permalink
fix(Webpack dev-sever warnings): Add ignoreWarning to webpack config …
Browse files Browse the repository at this point in the history
…for @data-ui error (apache#28232)
  • Loading branch information
rtexelm authored Apr 30, 2024
1 parent efda57e commit a38dc90
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions superset-frontend/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,19 @@ const config = {
},
output,
stats: 'minimal',
/*
Silence warning for missing export in @data-ui's internal structure. This
issue arises from an internal implementation detail of @data-ui. As it's
non-critical, we suppress it to prevent unnecessary clutter in the build
output. For more context, refer to:
https://github.com/williaster/data-ui/issues/208#issuecomment-946966712
*/
ignoreWarnings: [
{
message:
/export 'withTooltipPropTypes' \(imported as 'vxTooltipPropTypes'\) was not found/,
},
],
performance: {
assetFilter(assetFilename) {
// don't throw size limit warning on geojson and font files
Expand Down

0 comments on commit a38dc90

Please sign in to comment.