12597f2822
Co-authored-by: JJ Kasper <jj@jjsweb.site>
17 lines
407 B
JavaScript
17 lines
407 B
JavaScript
module.exports = {
|
|
webpack: (config) => {
|
|
config.resolve.alias = {
|
|
...(config.resolve.alias || {}),
|
|
// Transform all direct `react-native` imports to `react-native-web`
|
|
'react-native$': 'react-native-web',
|
|
}
|
|
config.resolve.extensions = [
|
|
'.web.js',
|
|
'.web.jsx',
|
|
'.web.ts',
|
|
'.web.tsx',
|
|
...config.resolve.extensions,
|
|
]
|
|
return config
|
|
},
|
|
}
|