Skip to content

Commit 986857c

Browse files
committed
Revert "Fix StatoscopeWebpackPlugin import to support default export (#357)"
This reverts commit cb1844f.
1 parent cb1844f commit 986857c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/webpack-why/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function addStatoscope(limitConfig, check, webpackConfig) {
66
let shouldOpen = process.env.NODE_ENV !== 'test' && !limitConfig.saveBundle
77

88
webpackConfig.plugins.push(
9-
new StatoscopeWebpackPlugin.default({
9+
new StatoscopeWebpackPlugin({
1010
additionalStats: [limitConfig.compareWith, check.compareWith].filter(
1111
Boolean
1212
),
@@ -24,7 +24,7 @@ function addStatoscope(limitConfig, check, webpackConfig) {
2424
)
2525
} else if (limitConfig.saveBundle) {
2626
webpackConfig.plugins.push(
27-
new StatoscopeWebpackPlugin.default({
27+
new StatoscopeWebpackPlugin({
2828
open: false,
2929
saveReportTo: join(limitConfig.saveBundle, 'report.html'),
3030
saveStatsTo: join(limitConfig.saveBundle, 'stats.json'),

0 commit comments

Comments
 (0)