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
Localization using ES6 features leads to minify failure #1796
Comments
Just to provide an hint, the file is src/locale/hu/_lib/formatDistance/index.js; avoiding the computed property names in a object initialization, minification would be successful with the following code variant
|
Hi, I'm facing same issue using last version of Fixing temporarily my date-fns dependency to v2.13.0 solved the problem. |
@jmate0321 same issue for me with IE11, was about to poly-fill but the downgrade to v2.13.0 solved my problems as well. |
Also breaks uglify-js The |
since this issue has been solved in released |
Hello, using
date-fns
for an existing project built via https://create-react-app.dev/At build stage I am facing a failure as described on https://create-react-app.dev/docs/troubleshooting/#npm-run-build-fails-to-minify since used
react-script
version in project is less than 2.Current affected version is
v2.14.0
that merged code from #1765 two days ago; my temporary solution is to freeze tov2.13.0
package version, but since just one file raises the failure, it could be just written in a legacy flavor.The text was updated successfully, but these errors were encountered: