microsoft / microsoft/TypeScript

[playground] Show transpiled output for JavaScript inputs

Aperta
#60,330 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Bug Domain: JavaScript Website
Lingua principale
Go
Stelle
111k
Fork
14.4k
Merge medio
1g 19h
PR unite (30g)
117

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia dalla gestione dell'input JavaScript del TypeScript playground e confrontala con il percorso TypeScript usando gli esempi ES2015 collegati. Il lavoro è completato quando inserire 1 ** 2 con JavaScript selezionato mostra l'output transpilato Math.pow(1, 2), come nel caso TypeScript.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, typescript
Ambito
tooling
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.