Skip to content

Commit a100a26

Browse files
committed
chore: Add comment about web support aliases
1 parent f77ca0b commit a100a26

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.storybook/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ module.exports = {
3939
},
4040
],
4141
})
42-
// Aliases for web support (https://github.com/expo/expo/issues/21469#issuecomment-1576001543)
43-
config.resolve.alias['expo-asset'] = 'expo-asset-web'
42+
// Transform all direct `react-native` imports to `react-native-web`
4443
config.resolve.alias['react-native$'] = require.resolve('react-native-web')
44+
// Other aliases for web support (https://github.com/expo/expo/issues/21469#issuecomment-1576001543)
45+
config.resolve.alias['expo-asset'] = 'expo-asset-web'
4546
config.resolve.alias['aetherspace/navigation'] = require.resolve('./__mocks__/aetherspaceNavigation.tsx')
4647
config.resolve.extensions.push('.ts', '.tsx')
4748
config.resolve.fallback = {

0 commit comments

Comments
 (0)