Skip to content

Add migration note for developmentSourceSelf option#3185

Merged
nicolo-ribaudo merged 4 commits intobabel:mainfrom
rootvector2:docs/v8-migration-development-source-self
Mar 7, 2026
Merged

Add migration note for developmentSourceSelf option#3185
nicolo-ribaudo merged 4 commits intobabel:mainfrom
rootvector2:docs/v8-migration-development-source-self

Conversation

@rootvector2
Copy link
Copy Markdown
Contributor

Q A
Fixed Issues? Fixes babel/babel#17571
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? N/A
Documentation PR Link
Any Dependency Changes?
License MIT

Adds a migration note for the new developmentSourceSelf option introduced in babel/babel#17845.

React 19.2 removed the source and self parameters from jsxDEV. Babel 8 no longer generates them by default in development mode. Users on older React versions can opt back in with developmentSourceSelf: true.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 2, 2026

👷 Deploy request for babel-next pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 689b779

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 2, 2026

Deploy Preview for babel ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 689b779
🔍 Latest deploy log https://app.netlify.com/projects/babel/deploys/69ab37909a86560008c376fb
😎 Deploy Preview https://deploy-preview-3185--babel.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@rootvector2
Copy link
Copy Markdown
Contributor Author

@JLHwung Done

@nicolo-ribaudo
Copy link
Copy Markdown
Member

nicolo-ribaudo commented Mar 2, 2026

Thank you! Could you also add it to https://github.com/babel/website/blob/main/docs/plugin-transform-react-jsx-development.md#options and https://github.com/babel/website/blob/main/docs/preset-react.md#options? It should be gated by :::babel8 ... :::, see other examples in those files.

Per JLHwung's review, the developmentSourceSelf option is only accepted
by the development plugin, not the main plugin-transform-react-jsx.
Move the option docs to plugin-transform-react-jsx-development.md,
above the 'see options in' sentence.
@nicolo-ribaudo nicolo-ribaudo merged commit afbe478 into babel:main Mar 7, 2026
4 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-transform-react-jsx-development still generates source and self arguments for jsxDEV, which were removed in React 19.2

3 participants