New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make automatic runtime the default for JSX compilation #11436
Make automatic runtime the default for JSX compilation #11436
Conversation
packages/babel-preset-typescript/test/fixtures/jsx-compat/options.json
Outdated
Show resolved
Hide resolved
f6408aa
to
91ff058
Compare
91ff058
to
7e245a4
Compare
The fixture tests related to |
200a955
to
be54225
Compare
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/24717/ |
be54225
to
be58636
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 9007037:
|
be58636
to
eb000d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
packages/babel-preset-typescript/test/fixtures/jsx-compat/js-valid/output.js
Outdated
Show resolved
Hide resolved
packages/babel-preset-typescript/test/fixtures/jsx-compat/tsx-valid/output.js
Outdated
Show resolved
Hide resolved
062c6ca
to
bb33d08
Compare
@arku I have pushed a fix for the broken CRA e2e test. The e2e test is broken by the nature of this breaking change. Before CRA upgrades |
f8f7571
to
d3c726a
Compare
@JLHwung Thanks for the review and the e2e test fix! |
d3c726a
to
9007037
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. Thanks.
Babel 8 changes the default JSX runtime from classic to automatic. Since create-react-app does not specify the runtime option, the e2e tests fail. See babel/babel#11436 and babel/babel#11436 (comment) for more information.
@arku Can you submit a docs PR? |
@arku Oh I went ahead and submitted babel/website#2289, can you take a review? |
@JLHwung Ah, I see. Thanks! Let me check. |
Done! |
Makes the new JSX runtime
automatic
the default (previously, it wasclassic
).Refs: #10746, #11154 (comment)
TODOs: