-
Notifications
You must be signed in to change notification settings - Fork 64
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
IE11 is not supported in ESM bundle #266
Comments
It is impossible for a library author to know what target to transpile against and is thus up to application developers to set the proper babel configuration when using the module file. The .babelrc file here is only for the benefit of users that may load the cdn version directly in the browser. Even if it was reasonable as a library author to determine browser targets, I likely wouldn't include IE11 going forward. Please ensure that you are using the babel-loader correctly in Webpack. |
I think it is common to transpile to ES5 so the library would be compatible with pretty much every environment. As I understand, the
Of course, most ES6 features are already supported in browsers and node, and it is time to say farewell to IE11 :) I'm just curious what can potentially cause bundler to use
Currently, babel-loader is used for everything except for |
You might want to check the following: https://stackoverflow.com/a/56428646/3145360 |
Thanks, just wanted to clarify what you mean. So, as IE 11 is not supported, what do you think about mentioning it in the README? Other than that, feel free to close the issue. |
Environment details
Steps to reproduce
useJsApiLoader
hook. Underhood, it will importjs-api-loader
usingmodule: dist/index.esm.js
.The reason is that esm file contains arrow functions, which are not supported in IE11.
I noticed, that in
.babelrc
IE11 is mentioned in the list of supported browsers. So, probably it worth compiling code to ES5 target to support IE11.For reference, I found this doc in the rollup repo, that suggests compiling everything except for import/export.
The text was updated successfully, but these errors were encountered: