2021-10-21 12:44:34 +05:00
|
|
|
diff --git a/node_modules/react-scripts/config/webpack.config.js b/node_modules/react-scripts/config/webpack.config.js
|
2021-10-21 13:21:24 +05:00
|
|
|
index 26c2a65..9a8c3c0 100644
|
2021-10-21 12:44:34 +05:00
|
|
|
--- a/node_modules/react-scripts/config/webpack.config.js
|
|
|
|
|
+++ b/node_modules/react-scripts/config/webpack.config.js
|
2021-10-21 13:18:01 +05:00
|
|
|
@@ -782,6 +782,7 @@ module.exports = function (webpackEnv) {
|
2021-10-21 12:44:34 +05:00
|
|
|
// 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.
|
2021-10-21 13:18:01 +05:00
|
|
|
node: {
|
2021-10-21 13:21:24 +05:00
|
|
|
+ crypto: 'empty',
|
2021-10-21 13:18:01 +05:00
|
|
|
module: 'empty',
|
|
|
|
|
dgram: 'empty',
|
|
|
|
|
dns: 'mock',
|