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
Bundle Graph #548
Comments
Update: I changed the example(s) in this issue to hopefully be more clear. |
+1 either alone or built in. |
@drkibitz is there any reason that, in your case, you can't use webworkify to inline the webworkers into |
@hughsk Thanks for the pointer, have not heard of webworkify, but the fact that I use web workers in my example is arbitrary. I was just trying to make the example as real as I could, and thought web workers could demonstrate that well enough. |
The example could be three different html files, with three different js entry points, and it's the same example.
|
You can now do this with factor-bundle:
Each entry point has a corresponding output bundle and any modules used by more than 1 entry file (adjustable with --threshold) end up in I'm closing this issue because this can feature can be done with third-party modules but perhaps in the future core can support this feature natively once we have a good feeling for the solution space. |
I've seen the dependency graph, but I was wondering if it is possible to do something like the following example.
Something like this (Please understand this is to just to demonstrate the concept):
Maybe something to show the recommended command(s):
Or maybe just do it:
Final build would look like:
index.html:
worker1.js:
worker2.js:
The idea is to have something that understands multiple application runtime entry points, that can give you the recommended commonly shared scripts among them that need to be bundled. The previous example may be a bad one, but I hope you can understand what I'm trying to explain.
If something like this is already possible, would love to see an example!
Thanks.
The text was updated successfully, but these errors were encountered: