Build: Normalize JSX file extensions - #80990
Conversation
|
Size Change: 0 B Total Size: 7.91 MB |
96397cb to
3e1cab1
Compare
83736a6 to
2216a5f
Compare
|
Flaky tests detected in 0bddaab. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/33074831205 Should navigate inner blocks with arrow keys in
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Would we ever remove this? I feel like we added a bunch of hacks about supporting JSX in |
|
This should let us remove some of the artificial supports we added to Storybook as well: #82192 |
Part of #80855. Follows #81040 and preserves #80123.
What?
Rename tracked JavaScript files that contain JSX to
.jsx, including related snapshots, references, and changelogs.Why?
Make JSX-bearing files explicit to Vite and other tooling as a foundation for the test migration.
How?
wp-buildcompatibility for JSX in.js, while ESLint continues to require new unsuppressed JSX files to use.tsx.Supported package exports and build output are unchanged. Unsupported internal
srcpaths now use.jsx.Testing Instructions
npm run lint:js.npm run typecheck.npm run test:unit.npm run test:unit:vitest.npm run test:unit:routing.npm run build.Testing Instructions for Keyboard
Not applicable. This PR does not change UI behavior.
Use of AI Tools
Codex assisted with the mechanical rename, rebase, review fixes, and verification. The author reviewed the changes and test output.