2019-01-29 13:42:44 +01:00
|
|
|
module.exports = {
|
2018-12-17 17:34:32 +01:00
|
|
|
webpack: config => {
|
2018-10-22 22:32:24 +02:00
|
|
|
// Alias all `react-native` imports to `react-native-web`
|
|
|
|
config.resolve.alias = {
|
2019-01-29 13:42:44 +01:00
|
|
|
...(config.resolve.alias || {}),
|
2018-10-22 22:32:24 +02:00
|
|
|
'react-native$': 'react-native-web'
|
|
|
|
}
|
|
|
|
|
|
|
|
return config
|
|
|
|
}
|
2019-01-29 13:42:44 +01:00
|
|
|
}
|