Skip to content

Commit 3c28330

Browse files
author
hoo00nn
committed
Fix lint error
1 parent 82fd2a1 commit 3c28330

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/webpack-why/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import _StatoscopeWebpackPlugin from '@statoscope/webpack-plugin'
22
import { join } from 'node:path'
33

44
function addStatoscope(limitConfig, check, webpackConfig) {
5-
const StatoscopeWebpackPlugin = _StatoscopeWebpackPlugin.default ?? _StatoscopeWebpackPlugin
5+
let StatoscopeWebpackPlugin = _StatoscopeWebpackPlugin;
6+
if (StatoscopeWebpackPlugin.default) {
7+
StatoscopeWebpackPlugin = StatoscopeWebpackPlugin.default
8+
}
69
if (limitConfig.why) {
710
let shouldOpen = process.env.NODE_ENV !== 'test' && !limitConfig.saveBundle
811

0 commit comments

Comments
 (0)