-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Build in parallel #3506
Comments
So Rollup supports this but is too slow. There already are issues about this and this one does not add anything new. Supporting what you want is a major refactoring with lots of potential side-effects in the plugin area. |
I suppose you're referring to this #3325 (comment) I get it that Rollup tries to be a plain ESM bundler with "everything else is a plugin" mentality, but it's hard to suggest:
... when Webpack and Parcel do these things out of the box. Especially because those suggestions are followed by:
Even with the API, true concurrency is not possible unless you start venturing into workers. Over the years I saw a few long-standing issues being resolved (like the very support of multiple builds in one run: #1389), but sadly every time I try moving to Rollup, I can't (unless I do something very basic). |
Multi-threading is also very hard as the plugins need to live in the main thread, so a lot of data needs to be pushed back and forth. The tree-shaking algorithm is also not very multi-threading friendly. That does not mean it is not considered for some things. |
Hi, why was the issue closed? Today this is still a issue. I use rollup to build multiple inputs with multiple configs (cross product). I can exports an array in rollup config, but they only get built one by one, very slow. |
Yes, I am still having problems with this. My current solution is to have a script that spawns rollup comamnds with parameters passed in to the location of the generated config. Config is generated and pasted into my /tmp folder. it really sucks. |
What is the difference between running these (non overlapping srcs) manually in parallel:
vs rollup handling this internally when exporting rollup.config.js:
? |
Here's what I'm trying to do: Multiple entry, multiple output.
No overlaps. Just 2 unrelated entry points processed in parallel.
Unfortunately that config causes this error:
Webpack can do this with:
For my app, Webpack does this (and a few more transforms) in 9 seconds.
Rollup on the other hand handles this in series in ~7 seconds per each file (4 files) using this config:
Feature Use Case
I have a web extension with multiple, separate entry points. Both Webpack and Parcel let me specify multiple files.
Feature Proposal
entry
array, orexport default []
, Support for multiple bundles specified in a single config #863) in parallel, with multiple threadsThe text was updated successfully, but these errors were encountered: