Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
hoo00nn committed Mar 12, 2024
1 parent 82fd2a1 commit 3c28330
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/webpack-why/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import _StatoscopeWebpackPlugin from '@statoscope/webpack-plugin'
import { join } from 'node:path'

function addStatoscope(limitConfig, check, webpackConfig) {
const StatoscopeWebpackPlugin = _StatoscopeWebpackPlugin.default ?? _StatoscopeWebpackPlugin
let StatoscopeWebpackPlugin = _StatoscopeWebpackPlugin;
if (StatoscopeWebpackPlugin.default) {
StatoscopeWebpackPlugin = StatoscopeWebpackPlugin.default
}
if (limitConfig.why) {
let shouldOpen = process.env.NODE_ENV !== 'test' && !limitConfig.saveBundle

Expand Down

0 comments on commit 3c28330

Please sign in to comment.