@@ -14,21 +14,13 @@ const safePostCssParser = require('postcss-safe-parser');
1414const ManifestPlugin = require ( 'webpack-manifest-plugin' ) ;
1515const InterpolateHtmlPlugin = require ( 'react-dev-utils/InterpolateHtmlPlugin' ) ;
1616const WorkboxWebpackPlugin = require ( 'workbox-webpack-plugin' ) ;
17- // const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
1817const ModuleScopePlugin = require ( 'react-dev-utils/ModuleScopePlugin' ) ;
1918const getCSSModuleLocalIdent = require ( 'react-dev-utils/getCSSModuleLocalIdent' ) ;
2019const paths = require ( './paths' ) ;
2120const modules = require ( './modules' ) ;
2221const { NODE_ENV , getClientEnvironment} = require ( './env' ) ;
2322const ModuleNotFoundPlugin = require ( 'react-dev-utils/ModuleNotFoundPlugin' ) ;
2423const ForkTsCheckerWebpackPlugin = require ( 'react-dev-utils/ForkTsCheckerWebpackPlugin' ) ;
25- // const typescriptFormatter = require('react-dev-utils/typescriptFormatter');
26- // const ESLintPlugin = require.resolve('eslint-webpack-plugin');
27-
28- // const myEslintOptions = {
29- // extensions: [`js`, `jsx`, `ts`, `tsx`, `mjs`],
30- // exclude: [`node_modules`],
31- // };
3224
3325
3426const postcssNormalize = require ( 'postcss-normalize' ) ;
@@ -516,12 +508,6 @@ module.exports = function(webpackEnv) {
516508 // a plugin that prints an error when you attempt to do this.
517509 // See https://github.com/facebook/create-react-app/issues/240
518510 isEnvDevelopment && new CaseSensitivePathsPlugin ( ) ,
519- // If you require a missing module and then `npm install` it, you still have
520- // to restart the development server for webpack to discover it. This plugin
521- // makes the discovery automatic so you don't have to restart.
522- // See https://github.com/facebook/create-react-app/issues/186
523- // isEnvDevelopment &&
524- // new WatchMissingNodeModulesPlugin(paths.appNodeModules),
525511 isEnvProduction &&
526512 new MiniCssExtractPlugin ( {
527513 // Options similar to the same options in webpackOptions.output
@@ -576,8 +562,6 @@ module.exports = function(webpackEnv) {
576562 '!**/src/setupTests.*' ,
577563 ] ,
578564 silent : true ,
579- // The formatter is invoked directly in WebpackDevServerUtils during development
580- // formatter: isEnvProduction ? typescriptFormatter : undefined,
581565 } ) ,
582566 ] . filter ( Boolean ) ,
583567 // Some libraries import Node modules but don't use them in the browser.
0 commit comments