Repository navigation
docs(Reanimated): fix deprecated babel plugin names and an escaped link - #9714
Merged
tjzel merged 5 commits intoJun 22, 2026
Conversation
Babel renamed these plugins in 7.18.0, dropping the "proposal" stage. The current docs still use the old aliases in the Web setup instructions: - getting-started.mdx: `@babel/plugin-proposal-export-namespace-from` -> `@babel/plugin-transform-export-namespace-from` (prose, install commands and the babel.config.js snippet), and update its babeljs.io link. - web-support.mdx: `@babel/plugin-proposal-class-properties` -> `@babel/plugin-transform-class-properties`. The repo's own packages/react-native-worklets/package.json already depends on the `@babel/plugin-transform-*` names, so the docs now match. Also remove three stray backslashes in useScrollOffset.mdx that escaped a markdown link, making it render as literal text instead of linking to the glossary. Fixes software-mansion#7098
Collaborator
|
Yeah, we don't use these extra plugins in our example app for web, they can be removed from the docs. |
Contributor
Author
|
Thanks @tjzel. Dropped |
Removed unnecessary Babel configuration instructions for web.
Removed the plugin '@babel/plugin-transform-class-properties' from the Babel loader options.
tjzel
added this pull request to the merge queue
Jun 22, 2026
Merged
via the queue into
software-mansion:main
with commit Jun 22, 2026
69bd148
6 of 7 checks passed
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.
Summary
Two small documentation fixes in the Reanimated docs.
1. Deprecated Babel plugin names in the Web setup docs (Fixes #7098).
Babel renamed these plugins in 7.18.0 and dropped the
proposalstage from the names (the-proposal-form is now a deprecated alias). The Web setup instructions still use the old names:docs/fundamentals/getting-started.mdx(#### Web):@babel/plugin-proposal-export-namespace-from->@babel/plugin-transform-export-namespace-fromin the prose, the npm/yarn install commands, and thebabel.config.jssnippet. Thebabeljs.iolink is updated to the current page as well.docs/guides/web-support.mdx:@babel/plugin-proposal-class-properties->@babel/plugin-transform-class-properties.This matches what the repository itself already uses:
packages/react-native-worklets/package.jsondepends on the@babel/plugin-transform-*names (e.g.@babel/plugin-transform-class-properties), not the-proposal-aliases.This is just the rename; it does not claim the plugin is unnecessary.
2. Escaped markdown link in
docs/scroll/useScrollOffset.mdx.The "Animated component" link in the
animatedRefdescription was backslash-escaped (\[Animated component]\(...\)), so it rendered as literal text instead of linking to the glossary. Removed the three stray backslashes. The sibling[animated ref](...)link in the same sentence was already correct and is unchanged.Test plan
Documentation-only text change (no code). Verified by reading the rendered Markdown:
babel.config.jssnippet now read@babel/plugin-transform-export-namespace-from/@babel/plugin-transform-class-properties.useScrollOffset"Animated component" reference is now a proper Markdown link ([Animated component](/docs/fundamentals/glossary#animated-component)) rather than escaped literal text.