diff --git a/packages/webpack-why/index.js b/packages/webpack-why/index.js index 05eefb93..2c982967 100644 --- a/packages/webpack-why/index.js +++ b/packages/webpack-why/index.js @@ -6,7 +6,7 @@ function addStatoscope(limitConfig, check, webpackConfig) { let shouldOpen = process.env.NODE_ENV !== 'test' && !limitConfig.saveBundle webpackConfig.plugins.push( - new StatoscopeWebpackPlugin({ + new StatoscopeWebpackPlugin.default({ additionalStats: [limitConfig.compareWith, check.compareWith].filter( Boolean ), @@ -24,7 +24,7 @@ function addStatoscope(limitConfig, check, webpackConfig) { ) } else if (limitConfig.saveBundle) { webpackConfig.plugins.push( - new StatoscopeWebpackPlugin({ + new StatoscopeWebpackPlugin.default({ open: false, saveReportTo: join(limitConfig.saveBundle, 'report.html'), saveStatsTo: join(limitConfig.saveBundle, 'stats.json'),