-
Notifications
You must be signed in to change notification settings - Fork 6
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
Predicate breaks create-react-app build process #10
Comments
I am extremely hesitant to change It seems more appropriate to me that the maintainer of the module you're using publish their module as ES5 since You may want to consider switching to |
Yeah I agree. create-react-app should have a different process for dealing with modules since each module is different. Unfortunately, webpack and browserify aren't options since create-react-app abstracts the build process from the developer. I'll contact the module maintainer. Thanks for your timely reply. |
Sure thing. :) What I meant by switching to |
Ahhh I understand. Yeah that could be an option. |
Good luck. |
Predicate is a deep dependency of a React component that I'm using for a web app that I'm building off of create-react-app.
Running the app, everything works great. However, when trying to build the app for deployment, it isn't able to do so since Predicate uses ES6 features and cannot be minified.
This is mainly because the entry point of this module is
index.js
, which is ES6, instead of the precompiled version in the dist folder. As this is a deep dependency, I cannot just simply import"predicate/dist/predicate"
instead of"predicate"
—this change needs to happen in the module which depends on Predicate.Should Predicate have its entry-point be changed to the non-ES6 compiled version in the dist folder, or should I ask the maintainer of the module which depends on Predicate to change their imports to the dist folder?
The text was updated successfully, but these errors were encountered: