-
Notifications
You must be signed in to change notification settings - Fork 5.6k
fix(publish): support jsx/tsx #28188
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
Conversation
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.
LGTM, exciting!
static JSX_RUNTIME_RE: Lazy<regex::Regex> = | ||
lazy_regex::lazy_regex!(r"(?i)^[\s*]*@jsxRuntime\s+(\S+)"); | ||
static JSX_FACTORY_RE: Lazy<regex::Regex> = | ||
lazy_regex::lazy_regex!(r"(?i)^[\s*]*@jsxFactory\s+(\S+)"); | ||
static JSX_FRAGMENT_FACTORY_RE: Lazy<regex::Regex> = | ||
lazy_regex::lazy_regex!(r"(?i)^[\s*]*@jsxFragmentFactory\s+(\S+)"); |
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.
I thought we already had these defined somewhere
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.
https://github.com/search?q=org%3Adenoland+jsxRuntime+language%3ARust+&type=code
Only for jsxImportSource/jsxImportTypes
Related: