-
Notifications
You must be signed in to change notification settings - Fork 182
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
Create React App build fails to minify #3
Comments
Yes, I think the problem is that "create-react-app" uses UglifyJS, which doesn't support es6 modules. I guess there're two options:
I was hoping we won't need to investigate a es5 compile workflow, but it seems like we'll need to. These build processes are really a big headache :) If you get it to work in es5 minify, please post your suggestions here. Thanks! |
This will be fixed in Roadmap: facebook/create-react-app#3618 |
Starting with v0.6.1, you should be able to make an es5 build in import {Pt} from 'pts/dist/es5.js'; // use this for es5 build Alternatively, you can use a newer companion tools such as neutrino.js instead of |
This is fixed in 2.0. |
Awesome! We'll test Pts using create-react-app 2.0 and update the docs soon. Thanks @gaearon |
I have created one project with Pts and it works really great, but when I run build script, it fails at minifying. I tried to compile library from source code, but I really don't know what exactly I need to change in configuration to make it work. Issue description at Create React App docs: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify
The text was updated successfully, but these errors were encountered: