-
Notifications
You must be signed in to change notification settings - Fork 330
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
toArray issue IE11. Babel not working. #72
Comments
Can you supply a full example? |
@yotamberk I think it is tho. I just checked the example pages of VIS and getting the same error as mine. https://visjs.github.io/vis-timeline/examples/timeline/basicUsage.html |
Eh... I guess you force me to download IE11... Fine... The things I do for you guys... 😝 |
Is it some kind of IE polyfill issue with the |
This problems are caused by |
- Use @babel/runtime and @babel/plugin-transform-runtime to transform resulting output. - Configure babel only on rollup.config.js and not on .babelrc to apply to resulting output and not only files of this project.
I see problems in calls to Object.assign, Object.values, etc. Those functions are not present in IE11 so you can use babel/runtime to include those polyfills. I test PR #100 and it works on IE11 🎉 |
- Restore .babelrc file because there are more things using Babel than Rollup. - Configure rollup to exclude .babelrc files. Ref: https://github.com/rollup/rollup-plugin-babel#external-dependencies
* Fixes #72 - toArray issue IE11. Babel not working. - Use @babel/runtime and @babel/plugin-transform-runtime to transform resulting output. - Configure babel only on rollup.config.js and not on .babelrc to apply to resulting output and not only files of this project. * Fixes #72 - toArray issue IE11. Babel not working. - Restore .babelrc file because there are more things using Babel than Rollup. - Configure rollup to exclude .babelrc files. Ref: https://github.com/rollup/rollup-plugin-babel#external-dependencies
I'm getting the following error in IE11. I tried to convert it with babel but same error. Is this known and does someone have a fix? Cheers!
The text was updated successfully, but these errors were encountered: