Skip to content

Commit

Permalink
fix: align to target getResolveOptions API
Browse files Browse the repository at this point in the history
  • Loading branch information
jbroma committed Mar 18, 2024
1 parent 6e4ec5b commit c8e0095
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions metro-compat/resolver/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ export function resolve(
// @ts-expect-error memfs is compatible enough
fileSystem: filesystem,
// apply Re.Pack defaults
...getResolveOptions({
platform: platform ?? 'platform',
...getResolveOptions(String(platform), {
enablePackageExports: metroContext.unstable_enablePackageExports,
preferNativePlatform: metroContext.preferNativePlatform,
}),
Expand Down

0 comments on commit c8e0095

Please sign in to comment.