mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
dbdd663921
Fixes https://github.com/zeit/next.js/issues/6138 Tested with both latest and 8.0.0-canary.17
12 lines
245 B
JavaScript
12 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
|
|
}
|
|
}
|