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.
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:
@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.
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.