-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
react-scripts
dependency excluded from output bundle
#2449
Comments
Removed from |
Thanks for the fix! My only slight concern is that this issue could potentially also apply to any of the other dependencies in that list (e.g. I guess ideally electron builder could figure out which packages to filter out by checking against the Or alternatively, maybe this list could be configurable so that you can override the default list if your app has unusual requirements? Thanks for making the fix though, it fixes my problem at least! |
Why jest can be required? |
Jest might be required e.g. if you're building a jest test runner GUI app for writing quick TDD-style experiments/fiddles. I imagine that in this scenario you'd want to bundle the |
Already excluded from list :) Thanks for explanation. |
I'm currently working on an Electron app that allows users to compile their own React projects. One of the dependencies of the app is
react-scripts
.I couldn't figure out why the
react-scripts
dependency was being excluded from the output bundle, even though it is listed as adependency
of the main app (not adevDependency
).After trying all sorts of increasingly crazy attempts to get my project building, I finally managed to track this down to Electron Builder's set of
knownAlwaysIgnoredDevDeps
in electron-builder-lib/util/packageDependencies.ts. When I manually edit the electron-builder code and removereact-scripts
from this set, it is copied into the output correctly.Does this mean that these exclusions are incorrectly being applied to
dependencies
, not justdevDependencies
?The text was updated successfully, but these errors were encountered: