-
Notifications
You must be signed in to change notification settings - Fork 162
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
Babel transform "export xx from 'xxx' " to Object.defineProperty #32
Comments
Thank you very much! First yes you are right, babel fixed Second, I checked the link you gave, and found that I have made a mistake, IE8 did support
For this issue, I'll update the The last thing, I think you can report an issue (or create a pull-request) to Here is the related things that I have done before: |
BTW, you cannot write code like export xx from 'xxx'; It should be something like this: export * from 'xxx'; or this: export { xx } from 'xxx';
export { yy as yyy } from 'yyy'; |
It's better if you can beautify you issue content by using correct format of markdown. Here is a guide: https://guides.github.com/features/mastering-markdown/ |
Related post: http://www.aliued.com/?p=3240 |
Thanks for your feedback, I got it, the next time i will beautify my issue ☺ |
"Babel transforms your import to Object.defineProperty which doesn't exist in IE8。"
It should be 'export' ,not 'import' . IE8 has Object.defineProperty Object.defineProperty.
now Babel fixed the transform, but has another problem: Babel transform "export xx from 'xxx' " to Object.defineProperty, like:
"
Object.defineProperty(exports, 'LOCATION_CHANGE', {
enumerable: true,
get: function get() {
return _reducer.LOCATION_CHANGE;
}
});
"
the accessor property not support in ie8.
so cannot use react-router-redux because it use "export xx from 'xxx' ";
The text was updated successfully, but these errors were encountered: