Skip to content

Support Babel 8 overrides in babelParser#1103

Open
Stanzilla wants to merge 4 commits into
reactjs:mainfrom
Stanzilla:b.staneck/babel-8-support
Open

Support Babel 8 overrides in babelParser#1103
Stanzilla wants to merge 4 commits into
reactjs:mainfrom
Stanzilla:b.staneck/babel-8-support

Conversation

@Stanzilla

Copy link
Copy Markdown

Summary

  • use the synchronous Babel config API supported by Babel 7 and 8
  • avoid parser plugins removed by Babel 8 while preserving Babel 7 defaults
  • add a public parse regression test against Babel 8 and a patch changeset

This targets the workspace-override case from #1102. The declared Babel 7 dependency ranges remain unchanged; broader Babel 8 traverse/types support is outside this PR.

Testing

  • pnpm --filter react-docgen test (1,444 tests)
  • pnpm --filter react-docgen build
  • pnpm lint

Closes #1102

@netlify

netlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

Deploy Preview for react-docgen ready!

Name Link
🔨 Latest commit d4e6aa4
🔍 Latest deploy log https://app.netlify.com/projects/react-docgen/deploys/6a560da1da13680008f14ad6
😎 Deploy Preview https://deploy-preview-1103--react-docgen.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@changeset-bot

changeset-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d4e6aa4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
react-docgen Patch
@react-docgen/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Stanzilla Stanzilla marked this pull request as ready for review July 14, 2026 09:15
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.

Support Babel 8 in babelParser (loadPartialConfigSync)

1 participant