-
Notifications
You must be signed in to change notification settings - Fork 132
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
Override helpers #14
Comments
I would say this should be done on the TS side of things. the compiler could allow an option for |
Not sure you need to do anything like that. What you describe is basically what we've done until now: The problem with this approach is that we have to copy the whole thing to modify just BTW: maybe you could reconsider your position on |
you can still
I am sure you will have different feelings if you are supporting users on IE8, IE9 and IE10. We have heard feedback from multiple users who care about this scenario. |
Good point!
If I may: In the meantime... people who try to write standard-compliant code, or who try to migrate from Babel now that your downlevel emit is complete, have a really fun time debugging this stuff out. It takes a lot of time to understand why your |
We have a proposal for __extends in microsoft/TypeScript#12488 that should work for IE10 as well as newer browsers. |
Well, that proposal is great because it will be standard-compliant in IE11+ and it will fix issues in frameworks that use metadata when code is compiled to ES5. 🎉 But I should admit that I don't see how that would work for IE10-?? This is exactly what I've been asking for but I need to point out that you would introduce a different behavior between IE10- and IE11+, which I thought was exactly what you wanted to avoid. |
that is the best we could come up with :) trying to keep existing code working as well. |
No pressure! It's impossible to emulate inheritance in IE10- with 100% fidelity. I am glad you changed your mind about having a different ES-compliant behavior in capable browsers! 😃 |
Introducing support for
tslib
in TS 2.1 is great as we can now easily use up-to-date TS helpers without maintaining our own copy of the source files from github. 😄But it also introduced a regression: the option to override TS helpers with our own seems to have been lost?
Specifically, I want to provide my own
__extends
because the one provided by TS is (deliberately) buggy.Before I could do that by having a global
__extends
that would take precedence. With the new--importHelpers
it seems that I lost this option.What is the recommended way to go about that?
The text was updated successfully, but these errors were encountered: