Closed caraie closed 4 years ago
If the dependency listed in devDependencies
section try moving it to dependencies
.
it's already there in dependencies. I resolved the issue by switching from node-pre-gyp to prebuildify. node-pre-gyp doesn't work fine with webpack, so I had to declare it as external for that reason.
@caraie I think you should close the issue since it got resolved.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
In my project I'm using webpack for generating a bundle. I had to declare one of my dependencies as external, since it doesn't work properly with webpack. That means that dependency will be consumed from the node_modules. The problem is that electron-builder removes all the node_modules when executed, so my dependency is not part of the final bundle. I tried declaring that dependency in the files section of the electron builder configuration with no luck. Is there any way to avoid this issue?