File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
16
16
var CaseSensitivePathsPlugin = require ( 'case-sensitive-paths-webpack-plugin' ) ;
17
17
var InterpolateHtmlPlugin = require ( 'react-dev-utils/InterpolateHtmlPlugin' ) ;
18
18
var WatchMissingNodeModulesPlugin = require ( 'react-dev-utils/WatchMissingNodeModulesPlugin' ) ;
19
+ var DuplicatePackageCheckerPlugin = require ( 'duplicate-package-checker-webpack-plugin' ) ;
19
20
var getClientEnvironment = require ( './env' ) ;
20
21
var paths = require ( './paths' ) ;
21
22
@@ -224,6 +225,9 @@ module.exports = {
224
225
// a plugin that prints an error when you attempt to do this.
225
226
// See https://github.com/facebookincubator/create-react-app/issues/240
226
227
new CaseSensitivePathsPlugin ( ) ,
228
+ // Warn about duplicate dependencies.
229
+ // See https://github.com/facebookincubator/create-react-app/issues/1844
230
+ new DuplicatePackageCheckerPlugin ( ) ,
227
231
// If you require a missing module and then `npm install` it, you still have
228
232
// to restart the development server for Webpack to discover it. This plugin
229
233
// makes the discovery automatic so you don't have to restart.
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
16
16
var ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
17
17
var ManifestPlugin = require ( 'webpack-manifest-plugin' ) ;
18
18
var InterpolateHtmlPlugin = require ( 'react-dev-utils/InterpolateHtmlPlugin' ) ;
19
+ var DuplicatePackageCheckerPlugin = require ( 'duplicate-package-checker-webpack-plugin' ) ;
19
20
var paths = require ( './paths' ) ;
20
21
var getClientEnvironment = require ( './env' ) ;
21
22
@@ -259,6 +260,9 @@ module.exports = {
259
260
screw_ie8 : true
260
261
}
261
262
} ) ,
263
+ // Warn about duplicate dependencies.
264
+ // See https://github.com/facebookincubator/create-react-app/issues/1844
265
+ new DuplicatePackageCheckerPlugin ( ) ,
262
266
// Note: this won't work without ExtractTextPlugin.extract(..) in `loaders`.
263
267
new ExtractTextPlugin ( cssFilename ) ,
264
268
// Generate a manifest file which contains a mapping of all asset filenames
Original file line number Diff line number Diff line change 37
37
"css-loader" : " 0.26.1" ,
38
38
"detect-port" : " 1.1.0" ,
39
39
"dotenv" : " 2.0.0" ,
40
+ "duplicate-package-checker-webpack-plugin" : " ^1.2.4" ,
40
41
"eslint" : " 3.16.1" ,
41
42
"eslint-config-react-app" : " ^0.6.2" ,
42
43
"eslint-loader" : " 1.6.0" ,
You can’t perform that action at this time.
0 commit comments