Skip to content

Commit

Permalink
Merge pull request #61 from rollup-umd/dev
Browse files Browse the repository at this point in the history
fix(createConfig): using process.cwd() instead of __dirname
  • Loading branch information
kopax authored Feb 12, 2020
2 parents 64b6e02 + 8390378 commit 181b93c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/createConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ export function getReactNativeConfiguration() {
'react-dom$': require.resolve('react-dom'),
// 'react-art$': require.resolve('react-art'),
// Home made fix
'./RNGestureHandlerModule': join(__dirname, 'node_modules', 'react-native-gesture-handler', 'RNGestureHandlerModule.web.js'),
'./GestureHandlerButton': join(__dirname, 'node_modules', 'react-native-gesture-handler', 'GestureHandlerButton.web.js'),
'./GestureComponents': join(__dirname, 'node_modules', 'react-native-gesture-handler', 'GestureComponents.web.js'),
'./PlatformConstants': join(__dirname, 'node_modules', 'react-native-gesture-handler', 'PlatformConstants.web.js'),
'./resolveAssetSource': join(__dirname, 'node_modules', 'expo-asset', 'build', 'resolveAssetSource.web.js'),
'./EmbeddedAssets': join(__dirname, 'node_modules', 'expo-asset', 'build', 'EmbeddedAssets.web.js'),
'./AssetSourceResolver': join(__dirname, 'node_modules', 'expo-asset', 'build', 'AssetSourceResolver.web.js'),
'./AssetRegistry': join(__dirname, 'node_modules', 'expo-asset', 'build', 'AssetRegistry.web.js'),
'./RNGestureHandlerModule': join(process.cwd(), 'node_modules', 'react-native-gesture-handler', 'RNGestureHandlerModule.web.js'),
'./GestureHandlerButton': join(process.cwd(), 'node_modules', 'react-native-gesture-handler', 'GestureHandlerButton.web.js'),
'./GestureComponents': join(process.cwd(), 'node_modules', 'react-native-gesture-handler', 'GestureComponents.web.js'),
'./PlatformConstants': join(process.cwd(), 'node_modules', 'react-native-gesture-handler', 'PlatformConstants.web.js'),
'./resolveAssetSource': join(process.cwd(), 'node_modules', 'expo-asset', 'build', 'resolveAssetSource.web.js'),
'./EmbeddedAssets': join(process.cwd(), 'node_modules', 'expo-asset', 'build', 'EmbeddedAssets.web.js'),
'./AssetSourceResolver': join(process.cwd(), 'node_modules', 'expo-asset', 'build', 'AssetSourceResolver.web.js'),
'./AssetRegistry': join(process.cwd(), 'node_modules', 'expo-asset', 'build', 'AssetRegistry.web.js'),
// Expo add react, react-native, react-native-web, and more
...aliases,
},
Expand Down

0 comments on commit 181b93c

Please sign in to comment.