Skip to content

Commit 34e5029

Browse files
dotansimhamrmckeb
authored andcommitted
Add empty mock for module (#5798)
1 parent fd38277 commit 34e5029

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ module.exports = function(webpackEnv) {
644644
// Some libraries import Node modules but don't use them in the browser.
645645
// Tell Webpack to provide empty mocks for them so importing them works.
646646
node: {
647+
module: 'empty',
647648
dgram: 'empty',
648649
fs: 'empty',
649650
net: 'empty',

0 commit comments

Comments
 (0)