Skip to content

docs(react-native): restore forcePolyfills option removed by #467 - #469

Open
moss-bryophyta wants to merge 1 commit into
mainfrom
docs/restore-force-polyfills
Open

docs(react-native): restore forcePolyfills option removed by #467#469
moss-bryophyta wants to merge 1 commit into
mainfrom
docs/restore-force-polyfills

Conversation

@moss-bryophyta

Copy link
Copy Markdown
Contributor

What

Restores the forcePolyfills documentation 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), so main currently omits a live public option from its reference page.

Verification

Checked against the published gt-react-native@11.1.9 tarball, not the changelog:

  • PluginOptions declares forcePolyfills?: ForceablePolyfill[].
  • ForceablePolyfill = keyof typeof FORCED_POLYFILL_IMPORTS resolves to exactly the three documented values (displaynames, listformat, relativetimeformat), matching the page.
  • Precedence claim confirmed by source order: POLYFILLS.filter(p => !excludePolyfills.includes(p)).map(p => getPolyfillImport(p, forcePolyfills)) — exclusion runs before the force mapping, so excludePolyfills does take precedence.
  • Default [] 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).

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant