-
Notifications
You must be signed in to change notification settings - Fork 603
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
Use babel to create ie11 (es5) compatible build #5619
Conversation
This creates a build-es5/ dir, similar to Vega main repo. I am not yet certain if this is required, or if tsc compiler already creates ie11-compatible code as is.
I would strongly prefer not to add another dependency and instead just use tsc (if possible). |
I would too, but this keeps it consistent with Vega lib itself, making sure it matches exactly the same output requirements/expectations. With tsc, you will always have to match babel profile with tsc settings - not something that will remain consistent. Besides, this is not like you are including a new binary, just using some extra tool in the build chain - not something that critical. But again, it is still unknown if this is needed, will be doing some testing soon. |
Makes sense. Maybe we can use babel instead of TSC to transpile Vega-Lite in general. Vega and Vega-Lite have somewhat different build systems. Vega does not use much Typescript right now for example. |
Using Babel instead of TSC would probably not be the best idea at this point in time. According to the announcement post:
|
I see. Then let's just switch to tsc only. |
Just to be clear, the quote I pointing out was TS -> JS via Babel, not ES6 -> ES5 via Babel, and this PR would still work. I'm not sure if we want to continue down this route or #5920 |
@nyurik looks like your PR effectively got in (although indirectly) 🙂 |
Yep. Thank you @nyurik! |
it's ok, only 4.5 months :) |
🦆 😇 |
This creates a build-es5/ dir, similar to Vega main repo.
I am not yet certain if this is required, or if tsc compiler
already creates ie11-compatible code as is.
Please:
Make the PR atomic. (Fix one issue at a time.) Multiple relevant issues that must be fixed together? Make atomic commits so we can easily review each issue.
Provide a concise title so we can easily copy it to the release note.
Fix #1
/Fix part of #1
)Lint and test (Run
yarn test
)Rebase onto the latest
master
branchReview your changeset first (to ensure code quality)
For new features
site/docs/
+ add examplesTips: