We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ever since react 17 was release, following became optional when using jsx elements
import React from "react";
I looked around, it seems esbuild supports it via injection evanw/esbuild#334 and babel supported it via @babel/preset-react runtime option.
@babel/preset-react
is it possible to achieve this using esbuild-loader plugin?
esbuild-loader
The text was updated successfully, but these errors were encountered:
The inject option isn't available in esbuild's transform API (which is what this loader uses).
In Webpack, you can use the ProvidePlugin
Related: #92
Sorry, something went wrong.
Alright, thank you
No branches or pull requests
Ever since react 17 was release, following became optional when using jsx elements
I looked around, it seems esbuild supports it via injection evanw/esbuild#334 and babel supported it via
@babel/preset-react
runtime option.is it possible to achieve this using
esbuild-loader
plugin?The text was updated successfully, but these errors were encountered: