Skip to content
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

Feature request: Multiple renderer builds #37

Open
beorn opened this issue Jan 8, 2022 · 4 comments
Open

Feature request: Multiple renderer builds #37

beorn opened this issue Jan 8, 2022 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@beorn
Copy link

beorn commented Jan 8, 2022

The electron-esbuild.config file currently has one mainConfig and one rendererConfig prop, but in bigger Electron apps it is normal to run different kinds of chrome processes as microservices (some as windowless background/server processes), each with its own build (entrypoint), and so there is a need to support multiple renderer builds.

See for example electron-forge's webpack config.

To be super flexible there are many different build setups that may be required - see parcel-bundler/parcel#2492 (comment)

@Kiyozz
Copy link
Owner

Kiyozz commented Jan 8, 2022

Thank for your request.

I think I can acomplish this by allowing multiple configs, transforming mainConfig into mainConfigs array.

I could add a new option to bundle additional file too (imgs, html, etc).

@Kiyozz Kiyozz added the enhancement New feature or request label Jan 8, 2022
@volny
Copy link

volny commented Feb 8, 2023

Hi, thank you for creating this project, it is very much needed given the lack of quality alternatives.
I agree with OP that support for multiple renderer processes is absolutely essential for building non-trivial apps.
Is there a plan to add this in the near future?

@Kiyozz
Copy link
Owner

Kiyozz commented Feb 8, 2023

Hi, this is a feature I would like to add to electron-esbuild. I already started to work on it, but I prioritize other features, and now on standby. I cannot provide any ETA yet.

@jmeinke
Copy link

jmeinke commented Mar 15, 2023

Hey @Kiyozz thank you so much for your electron-esbuild library. We have decided to use it and switched from the old unmaintained electron-webpack to your library. We'd also be interested in this feature. So a 👍 from me!

@Kiyozz Kiyozz added the help wanted Extra attention is needed label Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants