Remove RNGH from web bundle (#9528)
* remove RNGH on web * add intentionally-failing webpack alias * Update webpack.config.js
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import React from 'react'
|
||||
import {Pressable, View} from 'react-native'
|
||||
import {type ScrollView} from 'react-native-gesture-handler'
|
||||
import {Pressable, type ScrollView, View} from 'react-native'
|
||||
import {type AppBskyLabelerDefs, BSKY_LABELER_DID} from '@atproto/api'
|
||||
import {msg, Trans} from '@lingui/macro'
|
||||
import {useLingui} from '@lingui/react'
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export function BlockDrawerGesture({children}: {children: React.ReactNode}) {
|
||||
return children
|
||||
}
|
||||
@@ -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 || []),
|
||||
|
||||
Reference in New Issue
Block a user