1
0
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:
Hung-Han (Henry) Chen 2020-11-09 18:02:38 +08:00
parent d9c47ca548
commit e7217b3762
No known key found for this signature in database
GPG Key ID: 32931168425E1C95
2 changed files with 3 additions and 3 deletions

View File

@ -49,6 +49,6 @@ export default function (): webpack.Configuration {
new ProgressBarPlugin(),
new ForkTsCheckerPlugin(),
isDevelopment && new HardSourceWebpackPlugin(),
]
].filter(Boolean)
}
}

View File

@ -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),
}
}