Files
notesnook/apps/web/patches/react-scripts+4.0.3.patch
2021-10-21 13:21:24 +05:00

13 lines
586 B
Diff

diff --git a/node_modules/react-scripts/config/webpack.config.js b/node_modules/react-scripts/config/webpack.config.js
index 26c2a65..9a8c3c0 100644
--- a/node_modules/react-scripts/config/webpack.config.js
+++ b/node_modules/react-scripts/config/webpack.config.js
@@ -782,6 +782,7 @@ module.exports = function (webpackEnv) {
// 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.
node: {
+ crypto: 'empty',
module: 'empty',
dgram: 'empty',
dns: 'mock',