-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Resolve IE issue that cannot understand arrow function #1465
Conversation
jsveron23
commented
Mar 5, 2019
- IE 11 cannot understand arrow function
@jsveron23 do you have this issue just with |
As a workaround, I've modified my webpack config to exclude superagent from my node_modules exclusions (if that makes sense!) using this webpack/webpack#2031 (comment) |
@shankie-san I think, most people ignore transpile JS inside |
I will be publishing a new version soon that is compiled for older browser support (last 2 versions and > 1%). |
@niftylettuce if you think of it, if you could post back here once that's published, that would be great – as other people will come to this issue if they've searched Google for "superagent arrow functions" |
I commented everywhere else here in this GH repo but this issue (my bad!), v5.0.0 was released last night! @shankie-san. v5.0.0 was just released to NPM and an updated README is now available here on GitHub (see https://github.com/visionmedia/superagent#superagent). What's new
How to installnpm install superagent@latest
yarn add superagent@latest PolyfillsPlease see the Required Browser Features section in the README if you plan to support IE 9 and/or IE 10 and use |
Great thanks for letting me know @niftylettuce |
I still have arrow functions from superagent in my build, I'm using I'm requiring superagent explicitly from the
|
Please share your complete configuration - the easiest way for us to help you is to create a repository on GitHub that we can clone locally and reproduce this issue. |
@niftylettuce I made a super simple private repo, and grant you access: https://github.com/lorenzos/superagent-demo-1465/invitations. Just clone and run |
See my comment here: #1470 (comment) |
@niftylettuce Thanks for your many comments explaining the issue and explaining why superagent works differently from other packages. I'll try to configure Babelify so that it transforms superagent files in |