Skip to content

Commit 6da4e64

Browse files
micopiiramorgs32
authored andcommittedSep 1, 2017
Add empty mock for dgram (facebook#2600)
1 parent e44f02e commit 6da4e64

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

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

+1
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ module.exports = {
275275
// Some libraries import Node modules but don't use them in the browser.
276276
// Tell Webpack to provide empty mocks for them so importing them works.
277277
node: {
278+
dgram: 'empty',
278279
fs: 'empty',
279280
net: 'empty',
280281
tls: 'empty',

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

+1
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ module.exports = {
341341
// Some libraries import Node modules but don't use them in the browser.
342342
// Tell Webpack to provide empty mocks for them so importing them works.
343343
node: {
344+
dgram: 'empty',
344345
fs: 'empty',
345346
net: 'empty',
346347
tls: 'empty',

0 commit comments

Comments
 (0)