From 7da3f25caae8bc00879c37f42ebf0f27c3fd9a09 Mon Sep 17 00:00:00 2001 From: Leo McArdle Date: Mon, 13 May 2024 10:59:18 +0000 Subject: [PATCH] chore(webpack): remove ModuleNotFoundPlugin --- client/config/webpack.config.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/client/config/webpack.config.js b/client/config/webpack.config.js index ef102715ab4b..ce74f7edb66a 100644 --- a/client/config/webpack.config.js +++ b/client/config/webpack.config.js @@ -10,7 +10,6 @@ import MiniCssExtractPlugin from "mini-css-extract-plugin"; import CssMinimizerPlugin from "css-minimizer-webpack-plugin"; import { WebpackManifestPlugin } from "webpack-manifest-plugin"; import ESLintPlugin from "eslint-webpack-plugin"; -import ModuleNotFoundPlugin from "react-dev-utils/ModuleNotFoundPlugin.js"; import ReactRefreshWebpackPlugin from "@pmmmwh/react-refresh-webpack-plugin"; import paths from "./paths.js"; @@ -427,9 +426,6 @@ function config(webpackEnv) { : undefined ) ), - // This gives some necessary context to module not found errors, such as - // the requesting resource. - new ModuleNotFoundPlugin(paths.appPath), // Makes some environment variables available to the JS code, for example: // if (process.env.NODE_ENV === 'production') { ... }. See `./env.js`. // It is absolutely essential that NODE_ENV is set to production