-
-
Notifications
You must be signed in to change notification settings - Fork 191
Closed as not planned
Labels
Description
Description
A user shouldn't have to define jsxImportSource twice, if it's in a TSConfig then it's already defined.
ESBuild (and hopefully Vite) already respects that as far as I know for:
jsxFactory
jsxFragmentFactory
I think the plugin should do that for jsxImportSource as well.
Suggested solution
Read TSConfig.compilerOptions.jsxImportSource ?? options?.jsxImportSource ?? "react"
Alternative
Building a shim for the auto-import and let ESBuild the whole thing instead of using the plugin.
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
grncdr and swandiragrohs