Skip to content

Commit 0b5450c

Browse files
committed
Non-strict duplicate package check
1 parent 5f3eacf commit 0b5450c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ module.exports = {
272272

273273
// Warn about duplicate dependencies.
274274
// See https://github.com/facebookincubator/create-react-app/issues/1844
275-
new DuplicatePackageCheckerPlugin(),
275+
new DuplicatePackageCheckerPlugin({ strict: false }),
276276
],
277277
// Some libraries import Node modules but don't use them in the browser.
278278
// Tell Webpack to provide empty mocks for them so importing them works.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ module.exports = {
360360

361361
// Warn about duplicate dependencies.
362362
// See https://github.com/facebookincubator/create-react-app/issues/1844
363-
new DuplicatePackageCheckerPlugin(),
363+
new DuplicatePackageCheckerPlugin({ strict: false }),
364364
],
365365
// Some libraries import Node modules but don't use them in the browser.
366366
// Tell Webpack to provide empty mocks for them so importing them works.

0 commit comments

Comments
 (0)