Skip to content

Commit 69c6b35

Browse files
committed
Rm commented code
1 parent 864f799 commit 69c6b35

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

config/webpack.config.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,13 @@ const safePostCssParser = require('postcss-safe-parser');
1414
const ManifestPlugin = require('webpack-manifest-plugin');
1515
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
1616
const WorkboxWebpackPlugin = require('workbox-webpack-plugin');
17-
// const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
1817
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
1918
const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent');
2019
const paths = require('./paths');
2120
const modules = require('./modules');
2221
const {NODE_ENV, getClientEnvironment} = require('./env');
2322
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
2423
const 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

3426
const 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

Comments
 (0)