-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add UI for setting the lib option in playground #136
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
Comments
Yeah, agree - kinda blocked on orta/make-monaco-builds#2 in order to have a set of them all per TS version |
This is now unblocked by orta/make-monaco-builds#3 |
This became feasible via |
Can I put a plus one in for this.. I kinda wanna target a lower version, but add the es2019 lib so I can see what the polyfill output of certain lines of code would be. |
Currently putting a space before es2015 results in only dom being used, but |
You can set the
--lib
option in the playground by adding a URL parameter with the file you want to load - http://www.typescriptlang.org/play/index.html?lib=lib.esnext.d.ts, well, kind of. It doesn't load any referenced lib files, so you have to manually add those you need.This doesn't seem to be documented anywhere. It would be great to be able to load lib files with a UI and have them properly load dependencies too.
The text was updated successfully, but these errors were encountered: