add unicode-segmenter to dangerouslyAddModulePathsToTranspile

This commit is contained in:
Samuel Newman
2025-12-11 13:08:14 +02:00
parent 1fded4e914
commit a431bc3baa
+9 -1
View File
@@ -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',