mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
fix: Can't resolve 'crypto'
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
diff --git a/node_modules/react-scripts/config/webpack.config.js b/node_modules/react-scripts/config/webpack.config.js
|
diff --git a/node_modules/react-scripts/config/webpack.config.js b/node_modules/react-scripts/config/webpack.config.js
|
||||||
index 26c2a65..6fb9d6d 100644
|
index 26c2a65..9a8c3c0 100644
|
||||||
--- a/node_modules/react-scripts/config/webpack.config.js
|
--- a/node_modules/react-scripts/config/webpack.config.js
|
||||||
+++ b/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) {
|
@@ -782,6 +782,7 @@ module.exports = function (webpackEnv) {
|
||||||
// Some libraries import Node modules but don't use them in the browser.
|
// 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.
|
// Tell webpack to provide empty mocks for them so importing them works.
|
||||||
node: {
|
node: {
|
||||||
+ crypto: false,
|
+ crypto: 'empty',
|
||||||
module: 'empty',
|
module: 'empty',
|
||||||
dgram: 'empty',
|
dgram: 'empty',
|
||||||
dns: 'mock',
|
dns: 'mock',
|
||||||
|
|||||||
Reference in New Issue
Block a user