Skip to content

[playground] Show transpiled output for JavaScript inputs #60330

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

Open
1 task done
nicolo-ribaudo opened this issue Oct 23, 2024 · 2 comments
Open
1 task done

[playground] Show transpiled output for JavaScript inputs #60330

nicolo-ribaudo opened this issue Oct 23, 2024 · 2 comments
Labels
Bug A bug in TypeScript Website Deprecated - please forward issue to microsoft/TypeScript-Website
Milestone

Comments

@nicolo-ribaudo
Copy link

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?

@MartinJohns
Copy link
Contributor

@Andarist
Copy link
Contributor

@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript Website Deprecated - please forward issue to microsoft/TypeScript-Website labels Oct 31, 2024
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Website Deprecated - please forward issue to microsoft/TypeScript-Website
Projects
None yet
Development

No branches or pull requests

4 participants