From 4155cb68c2f028a8a9209ba15bd50ebddde5bab8 Mon Sep 17 00:00:00 2001 From: Ben Brandt Date: Fri, 5 Oct 2018 10:01:52 -0700 Subject: [PATCH] Remove unused require for getCacheIdentifier after ejecting (#5317) --- config/webpack.config.dev.js | 4 +++- config/webpack.config.prod.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index 9cc6859c971..29c7a8621f2 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -20,8 +20,10 @@ const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent') const getClientEnvironment = require('./env'); const paths = require('./paths'); const ManifestPlugin = require('webpack-manifest-plugin'); -const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier'); const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin'); +// @remove-on-eject-begin +const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier'); +// @remove-on-eject-end // Webpack uses `publicPath` to determine where the app is being served from. // In development, we always serve from the root. This makes config easier. diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index 2b690ff9f53..a9133cba556 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -24,8 +24,10 @@ const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin'); const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent'); const paths = require('./paths'); const getClientEnvironment = require('./env'); -const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier'); const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin'); +// @remove-on-eject-begin +const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier'); +// @remove-on-eject-end // Webpack uses `publicPath` to determine where the app is being served from. // It requires a trailing slash, or the file assets will get an incorrect path.