Skip to content

Narrow root wildcard entry point#57276

Closed
huntie wants to merge 2 commits into
react:mainfrom
huntie:export-D109018823
Closed

Narrow root wildcard entry point#57276
huntie wants to merge 2 commits into
react:mainfrom
huntie:export-D109018823

Conversation

@huntie

@huntie huntie commented Jun 18, 2026

Copy link
Copy Markdown
Member

Summary:
Simplify "exports" mapping on the react-native package by replacing the "./*" wildcard export with explicit listed subpaths (invert from blocklist to allowlist).

These changes are non-breaking — the net accessible exports subpaths before/after are equivalent.

Changelog: [Internal]

Differential Revision: D109018823

huntie added 2 commits June 18, 2026 06:35
Summary:
This appears to be a legacy, dangling, Flow-only entry point which we can remove.

Changelog: [Internal]

Differential Revision: D109018822
Summary:
Simplify `"exports"` mapping on the `react-native` package by replacing the `"./*"` wildcard export with explicit listed subpaths.

These changes are **non-breaking** — the net accessible exports subpaths before/after are equivalent.

Changelog: [Internal]

Differential Revision: D109018823
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 18, 2026
@meta-codesync

meta-codesync Bot commented Jun 18, 2026

Copy link
Copy Markdown

@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D109018823.

huntie added a commit to huntie/react-native that referenced this pull request Jun 18, 2026
Summary:

Simplify `"exports"` mapping on the `react-native` package by replacing the `"./*"` wildcard export with explicit listed subpaths (invert from blocklist to allowlist).

These changes are **non-breaking** — the net accessible exports subpaths before/after are equivalent.

Changelog: [Internal]

Differential Revision: D109018823
huntie added a commit to huntie/react-native that referenced this pull request Jun 18, 2026
Summary:

Simplify `"exports"` mapping on the `react-native` package by replacing the `"./*"` wildcard export with explicit listed subpaths (invert from blocklist to allowlist).

These changes are **non-breaking** — the net accessible exports subpaths before/after are equivalent.

Changelog: [Internal]

Differential Revision: D109018823
@meta-codesync meta-codesync Bot closed this in cd0d93a Jun 19, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Jun 19, 2026
@meta-codesync

meta-codesync Bot commented Jun 19, 2026

Copy link
Copy Markdown

This pull request has been merged in cd0d93a.

@huntie huntie deleted the export-D109018823 branch June 19, 2026 14:36
meta-codesync Bot pushed a commit that referenced this pull request Jun 29, 2026
Summary:
Pull Request resolved: #57362

The `"./types/*.d.ts"` entry was an overly defensive addition during our non-breaking `"exports"` field addition back in 0.80.

In reality, this subpath has no real consumers: the legacy types entry point (`.`) resolves its own declaration files through relative references, and the supported deep-import surface is `react-native/Libraries/*`, not `react-native/types/*`.

Type resolution of the main entry point and of `react-native/Libraries/*` deep imports is unaffected, and there is no runtime impact (these are declaration files).

Follows the exports-map cleanup in #57276.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D110044754

fbshipit-source-id: 0ddea81417e765503de01c8c43800f4114c81eb3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant