Skip to content

[playground] Show transpiled output for JavaScript inputs #60330

@nicolo-ribaudo

Description

@nicolo-ribaudo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specificallyWebsiteDeprecated - please forward issue to microsoft/TypeScript-Website

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions