direct radix imports, whitelist from eslint

This commit is contained in:
Samuel Newman
2026-05-25 19:05:53 +03:00
parent 5867c2be57
commit ad0df3cf43
7 changed files with 16 additions and 8 deletions
+4 -3
View File
@@ -14,10 +14,11 @@ if (cfg.resolver.resolveRequest) {
// Enforce "no RNGH on web"
cfg.resolver.blockList = [/react-native-gesture-handler\/.*/]
// Stub out unused Sentry integrations. They're statically imported by
// @sentry/browser's barrel, so we can't drop them via blockList; we redirect
// the imports to an empty module instead. ~185KB of dead weight on web.
// Stub out unused packages on web. They're statically imported by libraries we
// do use, so we can't drop them via blockList; we redirect the imports to an
// empty module instead.
const STUBBED_PACKAGES = new Set([
// Sentry integrations we don't use on web (~185KB).
'@sentry-internal/replay',
'@sentry-internal/replay-canvas',
'@sentry-internal/feedback',