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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multi-config compilation #615

Closed
IIIristraM opened this issue Aug 16, 2020 · 7 comments
Closed

Support for multi-config compilation #615

IIIristraM opened this issue Aug 16, 2020 · 7 comments
Labels

Comments

@IIIristraM
Copy link

馃挰 Questions and Help

I'm using a monorepo approach, where client consists of multiple packages with their own webpack configurations, but all bundles dynamically extends single application, which is hosted on nodejs server.

So each package produce its own loadable-stats.json, and for dev build I'm using webpack-dev-middleware with multicompiler.

I found no clues in documentation on whether any conventional way to extract chunks in such configuration, so I would appreciate any advice on how to make loadable-components work for multiple stats files.

@open-collective-bot
Copy link

Hey @IIIristraM 馃憢,
Thank you for opening an issue. We'll get back to you as soon as we can.
Please, consider supporting us on Open Collective. We give a special attention to issues opened by backers.
If you use Loadable at work, you can also ask your company to sponsor us 鉂わ笍.

@theKashey
Copy link
Collaborator

I can not provide and solution as well. There is an attempt to use loadable-components with module federation - #575, but it's actually NOT working

May be @7rulnik knows more about it.

@kdevan
Copy link

kdevan commented Aug 20, 2020

@IIIristraM
Copy link
Author

As far as I understand, now the only possible solution is to create ChunkExtractor for each stats file, which means that for N files application has to be rendered N times to collect chunks from all builds.

@theKashey
Copy link
Collaborator

You can create multiple chunk extractors on the server side but it might not work that way on the client side, where any code is executed inside some particular webpack "instance".

If you want to "mix" different builds/apps together - you need module federation.

@7rulnik
Copy link
Contributor

7rulnik commented Sep 16, 2020

@theKashey it works with node target, but currently it's impossible to predict some assets on the client-side. Not a big issue but still annoying.

@stale
Copy link

stale bot commented Nov 15, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 15, 2020
@stale stale bot closed this as completed Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants