Skip to content

Remove react-native/rn-get-polyfills subpath - #57482

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

Remove react-native/rn-get-polyfills subpath#57482
huntie wants to merge 2 commits into
react:mainfrom
huntie:export-D111035710

Conversation

@huntie

@huntiehuntie commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary:
Another cleanup to our package.json#exports map ahead of the Strict API rollout. This has been long-migrated to @react-native/js-polyfills in Metro configs.

getPolyfills: ()=>require('@react-native/js-polyfills')(),

Changelog:
[General][Breaking] - react-native/rn-get-polyfills is removed — please use @react-native/js-polyfills (package)

Reviewed By: rubennorte

Differential Revision: D111035710

huntie added 2 commits July 8, 2026 06:10
Summary:
It's been two releases since we separated `react-native/jest-preset` in 0.85 and this has been updated in the template.
Clean up by removing internal redirect module, public export, and peer dependency.
Changelog:
[General][Breaking] - `react-native/jest-preset` is removed — all projects must now migrate to `react-native/jest-preset` (package)
Reviewed By: rubennorte
Differential Revision: D111035221
Summary:
Another cleanup to our `package.json#exports` map ahead of the Strict API rollout. This has been long-migrated to `react-native/js-polyfills` in Metro configs.
https://www.internalfb.com/code/fbsource/[960845236d89]/xplat/js/react-native-github/packages/metro-config/src/index.flow.js?lines=66
Changelog:
[General][Breaking] - `react-native/rn-get-polyfills` is removed — please use `react-native/js-polyfills` (package)
Reviewed By: rubennorte
Differential Revision: D111035710
@meta-clameta-claBot 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 Jul 8, 2026
@meta-codesync

Copy link
Copy Markdown

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

huntie added a commit to huntie/react-native that referenced this pull request Jul 8, 2026
Summary:
Another cleanup to our `package.json#exports` map ahead of the Strict API rollout. This has been long-migrated to `react-native/js-polyfills` in Metro configs.
https://www.internalfb.com/code/fbsource/[960845236d89]/xplat/js/react-native-github/packages/metro-config/src/index.flow.js?lines=66
Changelog:
[General][Breaking] - `react-native/rn-get-polyfills` is removed — please use `react-native/js-polyfills` (package)
Reviewed By: rubennorte
Differential Revision: D111035710
@meta-codesyncmeta-codesyncBot added the Merged This PR has been merged. label Jul 8, 2026
@meta-codesync

Copy link
Copy Markdown

This pull request has been merged in b6a535a.

@huntie
huntie deleted the export-D111035710 branch July 8, 2026 13:36
zeyap pushed a commit that referenced this pull request Jul 13, 2026
Summary:
Pull Request resolved: #57482
Another cleanup to our `package.json#exports` map ahead of the Strict API rollout. This has been long-migrated to `react-native/js-polyfills` in Metro configs.
https://www.internalfb.com/code/fbsource/[960845236d89]/xplat/js/react-native-github/packages/metro-config/src/index.flow.js?lines=66
Changelog:
[General][Breaking] - `react-native/rn-get-polyfills` is removed — please use `react-native/js-polyfills` (package)
Reviewed By: rubennorte
Differential Revision: D111035710
fbshipit-source-id: d36acd7583f76f78c69a07ba7134ce8145d578f9
leotm added a commit to leotm/react-native-template-new-architecture that referenced this pull request Jul 20, 2026
- 0.88.0-nightly-20260720-e64027865
- react/react-native@e04ff69...e640278
- Bump RN deps and devDeps (@react-native: babel/jest preset, eslint/metro/ts configs)
- Bump Jest snapshot test rendered RN ver
- Update lockfiles (Yarn, CocoaPods)
- Update iOS privacy manifest
- Bump ReadMe ver
- Opt out of RN default Strict TS API for RNsafeareacontext
- react/react-native#57490
- #2041
- @lavamoat/react-native-lockdown unaffected by
- react/react-native#57482 deprecated rn-get-polyfills unused
- react/react-native#57475
- only hooking into Metro serializer opts getPolyfills and getRunModuleStatement
- react-native/packages/community-cli-plugin: getModulesRunBeforeMainModule updated from /Libraries/Core/InitializeCore to /setup-env in core
Resolve: #2031
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.meta-exportedp: FacebookPartner: FacebookPartner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@huntie