diff --git a/packages/webpack-why/index.js b/packages/webpack-why/index.js index 375be0ac..6d132dab 100644 --- a/packages/webpack-why/index.js +++ b/packages/webpack-why/index.js @@ -2,7 +2,7 @@ import _StatoscopeWebpackPlugin from '@statoscope/webpack-plugin' import { join } from 'node:path' function addStatoscope(limitConfig, check, webpackConfig) { - const StatoscopeWebpackPlugin = _StatoscopeWebpackPlugin.default ?? _StatoscopeWebpackPlugin + let StatoscopeWebpackPlugin = _StatoscopeWebpackPlugin ?? _StatoscopeWebpackPlugin.default; if (limitConfig.why) { let shouldOpen = process.env.NODE_ENV !== 'test' && !limitConfig.saveBundle