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
@@ -228,6 +229,9 @@ module.exports = {
228
229
// a plugin that prints an error when you attempt to do this.
229
230
// See https://github.com/facebookincubator/create-react-app/issues/240
230
231
new CaseSensitivePathsPlugin ( ) ,
232
+ // Warn about duplicate dependencies.
233
+ // See https://github.com/facebookincubator/create-react-app/issues/1844
234
+ new DuplicatePackageCheckerPlugin ( ) ,
231
235
// If you require a missing module and then `npm install` it, you still have
232
236
// to restart the development server for Webpack to discover it. This plugin
233
237
// 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
@@ -263,6 +264,9 @@ module.exports = {
263
264
screw_ie8 : true
264
265
}
265
266
} ) ,
267
+ // Warn about duplicate dependencies.
268
+ // See https://github.com/facebookincubator/create-react-app/issues/1844
269
+ new DuplicatePackageCheckerPlugin ( ) ,
266
270
// Note: this won't work without ExtractTextPlugin.extract(..) in `loaders`.
267
271
new ExtractTextPlugin ( cssFilename ) ,
268
272
// 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.1" ,
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