Remove RNGH from web bundle (#9528)

* remove RNGH on web

* add intentionally-failing webpack alias

* Update webpack.config.js
This commit is contained in:
Samuel Newman
2025-12-30 13:40:19 +02:00
committed by GitHub
parent 9743149c26
commit 9cfa7d0ba8
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -27,6 +27,7 @@ module.exports = async function (env, argv) {
'unicode-segmenter/grapheme': require
.resolve('unicode-segmenter/grapheme')
.replace(/\.cjs$/, '.js'),
'react-native-gesture-handler': false, // RNGH should not be used on web, so let's cause a build error if it sneaks in
})
config.module.rules = [
...(config.module.rules || []),