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

feat(cli): add support for jsxImportSourceTypes #23419

Merged
merged 12 commits into from Apr 30, 2024
Merged

Conversation

lucacasonato
Copy link
Member

@lucacasonato lucacasonato commented Apr 17, 2024

TODO:

  • understand why LSP has special handling of jsxImportSource in compiler
    options as compared to deno check
  • ensure that @jsxImportSourceTypes pragma works in LSP
  • ensure that @jsxImportSourceTypes pragma works in deno check
  • tests
{
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "npm:react@^18.3",
    "jsxImportSourceTypes": "npm:@types/react@^18.3"
  }
}

Closes #16653
Closes #18203
Closes #20455

Cargo.toml Outdated Show resolved Hide resolved
cli/emit.rs Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
Signed-off-by: Luca Casonato <hello@lcas.dev>
Signed-off-by: Luca Casonato <hello@lcas.dev>
@dsherret dsherret added this to the 1.43 milestone Apr 29, 2024
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dsherret dsherret enabled auto-merge (squash) April 30, 2024 17:29
@dsherret dsherret merged commit 6cdf81d into main Apr 30, 2024
17 checks passed
@dsherret dsherret deleted the jsx_import_source_types branch April 30, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants