microsoft / microsoft/TypeScript
[playground] Show transpiled output for JavaScript inputs
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.4k
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 117
Beschreibung
Acknowledgement
- I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.
Comment
Apologies if this is the wrong repository, I could not find one for the playground.
When setting the input language to "JavaScript", the playground does not show the transpiled code on the right. Instead, it shows the input code as-is.
You can test it by setting the target to ES2015 and writing 1 ** 2 in the input file: if the language is set to TypeScript you'll see Math.pow(1, 2) on the right (playground), while if the language is set to JavaScript you'll see 1 ** 2 (playground).
Is there a way to see the transpiled code?
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Verarbeitung der JavaScript-Eingabe im TypeScript playground und vergleiche sie anhand der verlinkten ES2015-Beispiele mit dem TypeScript-Pfad. Als erledigt gilt die Aufgabe, wenn die Eingabe von 1 ** 2 bei ausgewähltem JavaScript die transpilierte Ausgabe Math.pow(1, 2) anzeigt, die dem TypeScript-Fall entspricht.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, typescript
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100