-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
[Proposal] Set target to ES5 #19
Comments
I have considered it but not in-depth. I will do that. If you have the time I will be happy to know the answer to few questions. This will help me while researching:
Thanks in advance. |
|
Thanks a lot. One last question: Which bundler are you using? I am asking because I am wondering if it isn't possible to transform the module to ES5 using babel with the help of your bundler. I will research the topic soon and let you know. Thanks again. |
We are using webpack and yes, it is possible to transform the module to ES5 using Babel ourselves, but this would be the only dependency that we use that we'd have to do this for, so on our end we'd prefer to have an ES5 output as well. |
Makes sense. Thanks. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@callumlocke @Luccasoli This issue is not related to the ES5 target. I created a new issue for that – #20. I fixed the issue in a new 8.0.0 release. You can upgrade now but you should do it manually because the |
I thought a lot about this. I decided to not add support for ES5. These are my arguments:
|
@davidgomes If you have any other thoughts I'll be happy to hear them. For now, I am closing this issue for lack of activity. |
Have you considered changing the build target to ES5 instead of ES6 so that this library works across more browsers?
Alternatively, you can ship 2 different builds (one with target=ES5 and one with target=ES6), I've seen some other libraries do this and then as a client, I could do
import useLocalStorageState from "use-local-storage-state/es5"
.The text was updated successfully, but these errors were encountered: