Skip to content

Commit 183efed

Browse files
benbrandtTimer
authored andcommitted
Remove unused require for getCacheIdentifier after ejecting (#5317)
1 parent e783bf8 commit 183efed

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/react-scripts/config/webpack.config.dev.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent')
2020
const getClientEnvironment = require('./env');
2121
const paths = require('./paths');
2222
const ManifestPlugin = require('webpack-manifest-plugin');
23-
const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');
2423
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
24+
// @remove-on-eject-begin
25+
const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');
26+
// @remove-on-eject-end
2527

2628
// Webpack uses `publicPath` to determine where the app is being served from.
2729
// In development, we always serve from the root. This makes config easier.

packages/react-scripts/config/webpack.config.prod.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
2424
const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent');
2525
const paths = require('./paths');
2626
const getClientEnvironment = require('./env');
27-
const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');
2827
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
28+
// @remove-on-eject-begin
29+
const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');
30+
// @remove-on-eject-end
2931

3032
// Webpack uses `publicPath` to determine where the app is being served from.
3133
// It requires a trailing slash, or the file assets will get an incorrect path.

0 commit comments

Comments
 (0)