Skip to content

Commit

Permalink
fix(expo): add aliasFields to handle replaced files in browser env
Browse files Browse the repository at this point in the history
closed #16105
  • Loading branch information
Singloo committed Apr 5, 2023
1 parent 18c016b commit 9bea1fe
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 @@ -205,6 +205,7 @@ function getPnpmResolver(extensions: string[]) {
modules: [join(workspaceRoot, 'node_modules'), 'node_modules'],
conditionNames: ['native', 'browser', 'require', 'default'],
mainFields: ['react-native', 'browser', 'main'],
aliasFields: ['browser'],
});
}
return resolver;
Expand Down

0 comments on commit 9bea1fe

Please sign in to comment.