Skip to content

Commit 6e2898e

Browse files
micopiiragaearon
authored andcommittedJun 26, 2017
Add empty mock for dgram (#2600)
1 parent 58ef08f commit 6e2898e

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)
Please sign in to comment.