Bluesky app fork with some witchin' additions 💫 witchsky.app
bluesky fork

Remove RNGH from web bundle (#9528)

* remove RNGH on web

* add intentionally-failing webpack alias

* Update webpack.config.js

authored by samuel.fm and committed by GitHub 9cfa7d0b 9743149c

Changed files
+5 -2
src
components
moderation
ReportDialog
view
+1 -2
src/components/moderation/ReportDialog/index.tsx
··· 1 1 import React from 'react' 2 - import {Pressable, View} from 'react-native' 3 - import {type ScrollView} from 'react-native-gesture-handler' 2 + import {Pressable, type ScrollView, View} from 'react-native' 4 3 import {type AppBskyLabelerDefs, BSKY_LABELER_DID} from '@atproto/api' 5 4 import {msg, Trans} from '@lingui/macro' 6 5 import {useLingui} from '@lingui/react'
+3
src/view/shell/BlockDrawerGesture.web.tsx
··· 1 + export function BlockDrawerGesture({children}: {children: React.ReactNode}) { 2 + return children 3 + }
+1
webpack.config.js
··· 27 27 'unicode-segmenter/grapheme': require 28 28 .resolve('unicode-segmenter/grapheme') 29 29 .replace(/\.cjs$/, '.js'), 30 + 'react-native-gesture-handler': false, // RNGH should not be used on web, so let's cause a build error if it sneaks in 30 31 }) 31 32 config.module.rules = [ 32 33 ...(config.module.rules || []),