mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix build error: plugins shouldnt be null
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com>
This commit is contained in:
parent
d9c47ca548
commit
e7217b3762
@ -49,6 +49,6 @@ export default function (): webpack.Configuration {
|
||||
new ProgressBarPlugin(),
|
||||
new ForkTsCheckerPlugin(),
|
||||
isDevelopment && new HardSourceWebpackPlugin(),
|
||||
]
|
||||
].filter(Boolean)
|
||||
}
|
||||
}
|
||||
|
||||
@ -92,7 +92,6 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura
|
||||
}],
|
||||
],
|
||||
plugins: [
|
||||
// ... other plugins
|
||||
isDevelopment && require.resolve('react-refresh/babel'),
|
||||
].filter(Boolean),
|
||||
}
|
||||
@ -191,6 +190,7 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura
|
||||
isDevelopment && new HardSourceWebpackPlugin(),
|
||||
isDevelopment && new webpack.HotModuleReplacementPlugin(),
|
||||
isDevelopment && new ReactRefreshWebpackPlugin(),
|
||||
],
|
||||
|
||||
].filter(Boolean),
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user