docs(react-native): restore forcePolyfills option removed by #467 - #469
Open
moss-bryophyta wants to merge 1 commit into
Open
docs(react-native): restore forcePolyfills option removed by #467#469moss-bryophyta wants to merge 1 commit into
forcePolyfills option removed by #467#469moss-bryophyta wants to merge 1 commit into
Conversation
PR #467 removed the `forcePolyfills` documentation added by #463 while combining open docs PRs. The option is live in gt-react-native@11.1.9, so the plugin reference is missing a shipped public option. Restores the section verbatim from 1382695. Verified against the published package: PluginOptions declares forcePolyfills?: ForceablePolyfill[], FORCED_POLYFILL_IMPORTS supports exactly the three documented values, and excludePolyfills is applied before the force mapping.
moss-bryophyta
enabled auto-merge (squash)
August 16, 2026 17:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Restores the
forcePolyfillsdocumentation on the React Native plugin reference page.Why
#463 ("document selective forced polyfills", @eoinest) documented this option and merged as
1ca1470. #467, which combined the open Cursor docs PRs, deleted those 33 lines as collateral — its only change to this file was the removal.The option shipped in
gt-react-native@11.1.9(published today, gt#2086), somaincurrently omits a live public option from its reference page.Verification
Checked against the published
gt-react-native@11.1.9tarball, not the changelog:PluginOptionsdeclaresforcePolyfills?: ForceablePolyfill[].ForceablePolyfill = keyof typeof FORCED_POLYFILL_IMPORTSresolves to exactly the three documented values (displaynames,listformat,relativetimeformat), matching the page.POLYFILLS.filter(p => !excludePolyfills.includes(p)).map(p => getPolyfillImport(p, forcePolyfills))— exclusion runs before the force mapping, soexcludePolyfillsdoes take precedence.[]matches the destructured default.Content is restored verbatim from
1382695; no rewording. Diff is +33/-0.All five validators pass (unsafe-html 450, callouts 450, reference-links 404/256 aliases, structure valid, links valid).