rsnext/examples/with-react-native-web/next.config.js
2019-01-29 13:42:44 +01:00

11 lines
245 B
JavaScript

module.exports = {
webpack: config => {
// Alias all `react-native` imports to `react-native-web`
config.resolve.alias = {
...(config.resolve.alias || {}),
'react-native$': 'react-native-web'
}
return config
}
}