From 60a1c5fd953ac558dd957aa16999352577357271 Mon Sep 17 00:00:00 2001 From: raclim <43053081+raclim@users.noreply.github.com> Date: Thu, 12 Oct 2023 12:25:52 -0400 Subject: [PATCH] replace null with empty object for conditional import --- webpack/config.dev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack/config.dev.js b/webpack/config.dev.js index 9a0d7f71bd..57c3fab3f0 100644 --- a/webpack/config.dev.js +++ b/webpack/config.dev.js @@ -1,7 +1,7 @@ const webpack = require('webpack'); const path = require('path'); const CopyWebpackPlugin = require('copy-webpack-plugin'); -const ReactRefreshPlugin = process.env.NODE_ENV === 'development' ? require('@pmmmwh/react-refresh-webpack-plugin') : null; +const ReactRefreshPlugin = process.env.NODE_ENV === 'development'? require('@pmmmwh/react-refresh-webpack-plugin'): {}; const ESLintPlugin = require('eslint-webpack-plugin'); if (process.env.NODE_ENV === 'development') {