electron-userland / electron-userland/electron-webpack
Question: Can you bundle dependencies into the main module output?
- Dominant language
- TypeScript
- Stars
- 902
- Forks
- 168
- PR merge metrics
- No merged PRs in 30d
Description
I'm attempting to migrate a cobbled-together Electron+Webpack build to electron-webpack and electron-builder to have an integrated solution with HMR. Our current build bundles all dependencies into the main entry point file like you would in a webapp (before bundle splitting) to take advantage of tree-shaking and reduce the final size.
I tried adding my production dependencies to `whiteListedModules`, but electron-builder still added my entire `node_modules` to the output and broke native dependency loading in a cryptic way which worked in the ad-hoc build.
Is it possible to make this sort of setup work, or is there a a specific reason why it's not supported?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.