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 committed 2020-11-09 18:02:38 +08:00
1 parent d9c47ca548
commit e7217b3762
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -49,6 +49,6 @@ export default function (): webpack.Configuration {
new ProgressBarPlugin(),
new ForkTsCheckerPlugin(),
isDevelopment && new HardSourceWebpackPlugin(),
]
].filter(Boolean)
}
}
+2 -2
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),
}
}