add unicode-segmenter to dangerouslyAddModulePathsToTranspile
This commit is contained in:
+9
-1
@@ -19,7 +19,15 @@ const reactNativeWebWebviewConfiguration = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports = async function (env, argv) {
|
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, {
|
config = withAlias(config, {
|
||||||
'react-native$': 'react-native-web',
|
'react-native$': 'react-native-web',
|
||||||
'react-native-webview': 'react-native-web-webview',
|
'react-native-webview': 'react-native-web-webview',
|
||||||
|
|||||||
Reference in New Issue
Block a user