Skip to content
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

Use JSX automatic import transform #258

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

andygout
Copy link
Owner

@andygout andygout commented Oct 27, 2024

When switching to Rollup.js in PR #252, this DEV Community article mentioned that it is possible to:

[eliminate] the need for a global React import in each file that uses JSX

This is achieved in the rollup.config.js file by modifying the value of the presets property in the object passed as an argument to the function provided by @rollup/plugin-babel (and some equivalent changes for the server bundle).

References:

@andygout andygout merged commit 8062bd7 into main Oct 27, 2024
1 check passed
@andygout andygout deleted the use-jsx-automatic-import-transform branch October 27, 2024 23:06
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.

1 participant