Skip to content

Commit

Permalink
Revert "Fix StatoscopeWebpackPlugin import to support default export (#…
Browse files Browse the repository at this point in the history
…357)"

This reverts commit cb1844f.
  • Loading branch information
ai committed Mar 12, 2024
1 parent cb1844f commit 986857c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/webpack-why/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function addStatoscope(limitConfig, check, webpackConfig) {
let shouldOpen = process.env.NODE_ENV !== 'test' && !limitConfig.saveBundle

webpackConfig.plugins.push(
new StatoscopeWebpackPlugin.default({
new StatoscopeWebpackPlugin({
additionalStats: [limitConfig.compareWith, check.compareWith].filter(
Boolean
),
Expand All @@ -24,7 +24,7 @@ function addStatoscope(limitConfig, check, webpackConfig) {
)
} else if (limitConfig.saveBundle) {
webpackConfig.plugins.push(
new StatoscopeWebpackPlugin.default({
new StatoscopeWebpackPlugin({
open: false,
saveReportTo: join(limitConfig.saveBundle, 'report.html'),
saveStatsTo: join(limitConfig.saveBundle, 'stats.json'),
Expand Down

0 comments on commit 986857c

Please sign in to comment.