-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
IE9 and export default with ES5 compile target #4145
Comments
Sorry, this is not a TS problem. |
While digging deeper, this finally is a tsc problem. |
The referenced issues only cover ES3 behaviour. However, IE9 claims ES5 support, but it still does not accept Does this mean we must use ES3 to be compatible with IE9? Or could tsc output |
Currently you have to use ES3 to support IE9. Alexander Krauss notifications@github.com schrieb am So., 9. Aug. 2015
|
This is seriously affecting my ability to use TS Can I suggest a switch or tsconfig option to enable this functionality? |
use |
@mhegazy no that's not the same. That removes support for property get/set. I need support for this and get/set. So either "--target ES3" needs to convert property get/sets into get/set[PropertyName] or the ES5 conversion needs to do export["default"] |
The easiest solution for your problem would be to write a babel plugin to do the transforms from es5 to es3 which you need. And then run babel on your sources after typescript did. |
I'm sure I could But I still think this should be addressed as an issue with typescript. I will affect anyone that uses a default export and IE9 and the fix is easy enough - use export['default'] |
Can we add an option this? something like |
Hello,
we are using TS 1.5 and have a compile target set to ES5.
Now there is an issue with IE9 and the default keyword. Is there a way to get around this via a compiler flag? Or is this just a bug because in IE9 'default' is a reserved word?
The text was updated successfully, but these errors were encountered: