You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Add support for resolving assets (determined by `resolver.isAssetFile`) from Package Exports.
- As with source files, assets in `"exports"` do not automatically append `sourceExts` or platform-specific exts. **However**, we allow expansion of *source resolutions* (i.e. `2x.png` etc) from an `"exports"` target. This is Metro/React Native-specific functionality which otherwise has no equivalent in the Package Exports spec.
- Falls back to legacy file resolution logic when the asset is missing or `unstable_enablePackageExports` is `false`.
Changelog: **[Experimental]** Add asset handling for package exports via `context.resolveAsset`
Reviewed By: motiz88
Differential Revision: D43193253
fbshipit-source-id: 41ced8d6a91fc2d32051348635852c5df1f5d213
0 commit comments