From 60ff69cd8cddf32c45f9d8e1602cae6f8d39fd14 Mon Sep 17 00:00:00 2001 From: Oleksii Bulenok Date: Fri, 31 Jul 2026 15:55:57 +0200 Subject: [PATCH] silence expo router warning --- webpack.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index d16f3d3354..a2bcb14288 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -66,6 +66,13 @@ module.exports = async function (env, argv) { 'react-native-webview': 'react-native-web-webview', 'react-native-gesture-handler': false, // RNGH should not be used on web, so let's cause a build error if it sneaks in '@sentry-internal/replay': false, // not used, ~300kb of dead weight + /* + * @sentry/react-native's tracing integration probes for expo-router via a + * try/catch require(). We don't use expo-router, so the module can't + * resolve and webpack warns on every build. Stubbing it to an empty + * module makes the probe return null (`mod?.store ?? null`) silently. + */ + 'expo-router/build/global-state/router-store': false, /* * react-native-svg's fetchData util imports the ~55KB `buffer` polyfill, * but is only needed by SvgUri/SvgXml remote loading, which we don't use.