microsoft / microsoft/vscode-js-debug
Transpile TypeScript in the REPL
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 373
- Avg merge
- 1d 9m
- Merged PRs (30d)
- 6
Description
We already use TypeScript for walking the tree and, for instance, determining whether we need to wrap async/await. It would be a simple task to have it transpile the code down as well. For that we only need to know the target and language (i.e. jsx, or not). The target could safely default to ES6 nowadays, and be configurable with an option. I think we can determine the language programatically without needing extra config.
cc @eamodio
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the REPL implementation and the existing TypeScript tree-walking code that determines async/await wrapping. Check how the REPL could identify JSX versus non-JSX input and where an ES6 target or configurable target would be supplied; done means REPL code is transpiled with the selected target and language.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100