Skip to content

Commit

Permalink
fix(expo): add mainFields option for pnpm resolver
Browse files Browse the repository at this point in the history
closed #15763
  • Loading branch information
Singloo committed Mar 31, 2023
1 parent e1da4be commit 1943c5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/expo/plugins/metro-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ function getPnpmResolver(extensions: string[]) {
useSyncFileSystemCalls: true,
modules: [join(workspaceRoot, 'node_modules'), 'node_modules'],
conditionNames: ['native', 'browser', 'require', 'default'],
mainFields: ['react-native', 'browser', 'main'],
});
}
return resolver;
Expand Down

0 comments on commit 1943c5f

Please sign in to comment.