Skip to content

Commit

Permalink
replace null with empty object for conditional import
Browse files Browse the repository at this point in the history
  • Loading branch information
raclim committed Oct 12, 2023
1 parent 940968e commit 60a1c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack/config.dev.js
Original file line number Diff line number Diff line change
@@ -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') {
Expand Down

0 comments on commit 60a1c5f

Please sign in to comment.