Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

add react-scripts patch

Ammar Ahmed85a1406ae646
diff --git a/packages/editor-mobile/patches/react-scripts+4.0.3.patch b/packages/editor-mobile/patches/react-scripts+4.0.3.patch
new file mode 100644
index 000000000..8f6ce5905
--- /dev/null
+++ b/packages/editor-mobile/patches/react-scripts+4.0.3.patch
@@ -0,0 +1,13 @@
+diff --git a/node_modules/react-scripts/config/webpack.config.js b/node_modules/react-scripts/config/webpack.config.js
+index 26c2a65..c534178 100644
+--- a/node_modules/react-scripts/config/webpack.config.js
++++ b/node_modules/react-scripts/config/webpack.config.js
+@@ -343,6 +343,8 @@ module.exports = function (webpackEnv) {
+ 'react-dom$': 'react-dom/profiling',
+ 'scheduler/tracing': 'scheduler/tracing-profiling',
+ }),
++ react: path.resolve(__dirname, '../../react'),
++ 'react-dom': path.resolve(__dirname, '../../react-dom'),
+ ...(modules.webpackAliases || {}),
+ },
+ plugins: [