Closed dariocravero closed 8 years ago
Hey @nolanlawson, I don't know if it's possible to get access to npm for this package but if it is I'm happy to push updates with changes like this one or for instance rollup updating versions, etc. :)
So I can't find any documentation on cache
in Rollup (e.g. on this page) - can you confirm that it does indeed do a per-module cache, so e.g. if you have multiple bundles, they won't overwrite each other?
As for access to the npm package, yeah I'm happy to make you a contributor and a publisher, but it's still good to get +1s from someone else. :) Typically in my projects I do 1) make a PR, 2) wait for +1, 3) if no response after 24 hours, timebomb and merge it anyway. Cheers!
That sounds like a good way to go about it :); I'm dario@uxtemple.com on npm.
As for cache
, yeah, it's a pity it's not documented :) So far, rollup takes only the modules from the cache.
I'm not sure I'm following with multiple bundles, could you elaborate on that? Do you mean multiple targets?
(btw, just added some docs around it :P https://github.com/rollup/rollup/wiki/JavaScript-API, let's hope my assumptions are alright!)
Yes, I meant multiple targets. Thanks for the fix to the wiki; makes sense to me. I'll add you as a committer and publisher and publish this as a patch release; cheers!
Simple change, huuuge impact :)
Random numbers from a project I'm working on now:
Before this:
After the patch:
It's like 5 times faster already :)