Typescript: Make TypeScriptLang's Playground configurable

Created on 25 Jan 2017  ·  6Comments  ·  Source: microsoft/TypeScript

Would it be possible to add an editable tsconfig.json to TSL's Playground?

This would be useful for seeing how various rules are enforced and how tsc is able to emit different ES(n) versions.

Website

Most helpful comment

@DanielRosenwasser could "target" be added?

In the past I've found the playground very useful for seeing how TypeScript emits code. It would be useful to be able to see how it emits for different ES* versions.

All 6 comments

We'd have to get multi-file support into the playground in that case, but in the mean time we recently added some common compiler options for you to use:

image

@DanielRosenwasser could "target" be added?

In the past I've found the playground very useful for seeing how TypeScript emits code. It would be useful to be able to see how it emits for different ES* versions.

I think also lib should be added. This is a must for quick testing about the TSC, with ES2016, and ES2017 features and so.

This also needs to be designed with #15662 in mind, to not select options that the selected compiler would not understand.

Need lib and target be configurable. Need this feature for prototyping codes in TS playground and copy-paste to run in the browser or other environments.

These features are in the new playground! So I'm closing this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MartynasZilinskas picture MartynasZilinskas  ·  3Comments

weswigham picture weswigham  ·  3Comments

fwanicka picture fwanicka  ·  3Comments

manekinekko picture manekinekko  ·  3Comments

uber5001 picture uber5001  ·  3Comments