-
Notifications
You must be signed in to change notification settings - Fork 58
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
Compile to ES5 before publish to npm #5
Comments
Yes, I know about this recommendation. |
Thanks for sharing your approach. I considered copying the code into my source code, but that's just too messy. Your suggestion is better and is fine for now: I'm still in development and file size is not my main concern, as I'm planning to release it as a React app wrapped into a native mobile app. Fingers crossed a better or updated plugin will be available in the near future! |
Since v0.6.2 I will add the package precompiled to es5 (not minified)
Then you can build you app in production. |
This request is outdated |
React cannot minify this repository during build, because it hasn't been compiled to ES5. The React team recommends compiling packages to ES5 before publishing to ES5.
Of course, you may have your own needs and reasons for not having it compiled to ES5. I just wanted to inform you that compiling it will make this repository more relevant for React developers. The alternative for React developers is forking it or copying it to project code (both not ideal).
The text was updated successfully, but these errors were encountered: