electron-builder not including entire dependency in built version
See original GitHub issue- Electron-Builder Version: 22.14.5
- Node Version: v17.4.0
- Electron Version: 16.0.1
- Electron Type (current, beta, nightly): current
- Target: Window and MacOS
I am attempting to package my application using electron-builder, but one of my dependencies is not getting the entire module in the built version. Here is what the dependency looks like in my node_modules folder that is not built:
And here is what it looks like when I extract the app.asar file:
As you can see it is missing the constructor
folder entirely. I have tried including the specific files in the build path but I simply cannot get this to work. I’ve tried everything from re-installing my packages, updating node version, importing the index.js file directly, adding every variation of the file path to the build section of package.json. I would great appreciate some help on this. If you’d like even more info I even made a stackoverflow question:
Issue Analytics
- State:
- Created 2 years ago
- Comments:9
Top GitHub Comments
Maybe you can use patch-package to rename the folder and imports? Or manually include. You might be able to use
asarUnpack
to include everything else in an asar and then have@truffle
only unpacked (like how a.node
file would normally be)I will later today once I get home.