Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit ec0f811

Browse files
micopiirawmonk
authored andcommitted
Add empty mock for dgram (#2600)
1 parent b68c39e commit ec0f811

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
@@ -263,6 +263,7 @@ module.exports = {
263263
// Some libraries import Node modules but don't use them in the browser.
264264
// Tell Webpack to provide empty mocks for them so importing them works.
265265
node: {
266+
dgram: 'empty',
266267
fs: 'empty',
267268
net: 'empty',
268269
tls: 'empty',

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

+1
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ module.exports = {
325325
// Some libraries import Node modules but don't use them in the browser.
326326
// Tell Webpack to provide empty mocks for them so importing them works.
327327
node: {
328+
dgram: 'empty',
328329
fs: 'empty',
329330
net: 'empty',
330331
tls: 'empty',

0 commit comments

Comments
 (0)