From a431bc3baaa0746495a96f2a37d3d8ff0dd25715 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 11 Dec 2025 13:08:14 +0200 Subject: [PATCH] add unicode-segmenter to dangerouslyAddModulePathsToTranspile --- webpack.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 7f58a7448a..f4dd0a1679 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -19,7 +19,15 @@ const reactNativeWebWebviewConfiguration = { } module.exports = async function (env, argv) { - let config = await createExpoWebpackConfigAsync(env, argv) + let config = await createExpoWebpackConfigAsync( + { + ...env, + babel: { + dangerouslyAddModulePathsToTranspile: ['unicode-segmenter'], + }, + }, + argv, + ) config = withAlias(config, { 'react-native$': 'react-native-web', 'react-native-webview': 'react-native-web-webview',