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:
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -49,6 +49,6 @@ export default function (): webpack.Configuration {
|
||||
new ProgressBarPlugin(),
|
||||
new ForkTsCheckerPlugin(),
|
||||
isDevelopment && new HardSourceWebpackPlugin(),
|
||||
]
|
||||
].filter(Boolean)
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -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),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user