Skip to content

Commit

Permalink
chore(webpack): remove ModuleNotFoundPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA committed May 14, 2024
1 parent 8184c1a commit 7da3f25
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions client/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7da3f25

Please sign in to comment.