Skip to content

Commit

Permalink
Add empty mock for module (#5798)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and mrmckeb committed Jan 16, 2019
1 parent fd38277 commit 34e5029
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ module.exports = function(webpackEnv) {
// Some libraries import Node modules but don't use them in the browser.
// Tell Webpack to provide empty mocks for them so importing them works.
node: {
module: 'empty',
dgram: 'empty',
fs: 'empty',
net: 'empty',
Expand Down

0 comments on commit 34e5029

Please sign in to comment.