Skip to content

docs(Reanimated): fix deprecated babel plugin names and an escaped link - #9714

Merged
tjzel merged 5 commits into
software-mansion:mainfrom
patrickwehbe:docs/fix-babel-plugin-names-and-escaped-link
Jun 22, 2026
Merged

tjzel merged 5 commits into
software-mansion:mainfrom
patrickwehbe:docs/fix-babel-plugin-names-and-escaped-link

Conversation

@patrickwehbe

Copy link
Copy Markdown
Contributor

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 proposal stage 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-from in the prose, the npm/yarn install commands, and the babel.config.js snippet. The babeljs.io link 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.json depends 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 animatedRef description 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:

  • The plugin names in the prose, install commands, and babel.config.js snippet now read @babel/plugin-transform-export-namespace-from / @babel/plugin-transform-class-properties.
  • The useScrollOffset "Animated component" reference is now a proper Markdown link ([Animated component](/docs/fundamentals/glossary#animated-component)) rather than escaped literal text.

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

@MatiPl01 MatiPl01 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I am not sure if this plugin is still required or if it could be removed entirely. Let's wait for @tjzel to confirm.

@tjzel

tjzel commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Yeah, we don't use these extra plugins in our example app for web, they can be removed from the docs.

@patrickwehbe

Copy link
Copy Markdown
Contributor Author

Thanks @tjzel. Dropped @babel/plugin-transform-export-namespace-from from the web setup in getting-started.mdx (removed the install step and the plugin line, leaving just react-native-worklets/plugin). The class-properties rename in the web-support webpack example and the escaped-link fix are unchanged.

tjzel and others added 3 commits June 22, 2026 12:11
Removed unnecessary Babel configuration instructions for web.
Removed the plugin '@babel/plugin-transform-class-properties' from the Babel loader options.
@tjzel
tjzel added this pull request to the merge queue Jun 22, 2026
Merged via the queue into software-mansion:main with commit 69bd148 Jun 22, 2026
6 of 7 checks passed
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.

@babel/plugin-proposal-export-namespace-from is deprecated

3 participants