Comments (7)
This is actually baked into Rollup. See: https://www.rollupjs.org/guide/en/#cache
The old rollup-stream
wasn't actually doing anything with caching. See: https://github.com/Permutatrix/rollup-stream/blob/master/index.js
So you should already have this ability.
from stream.
Oh ok. I'm going to look into this tomorrow.
It would be good if this was clearly documented as part of the readme. This is incredibly important for fast build times.
from stream.
I'm not convinced that we need a readme section on this module. It's already stated clearly that all rollup options can be used, and are linked. Caching is pretty well documented on Rollup's site, and this module isn't limited to Gulp. Gulp is a popular streaming application, but definitely not the only one.
from stream.
The key thing that is confusing for Gulp users that is specific to this plugin is this question:
"How do I update the cached Rollup bundle using Gulp?"
This is something specific to @rollup/stream
and if it isn't answered in the readme then the only way I can see for people to be able to answer that question is to look into the source code which is terrible UX.
This is something that seems silly to obscure from the user when 99% of Gulp users will need to make use of the cache
option to optimise their watch task.
I'm working on a pull request right now to add documentation to the readme on how to optimise the Rollup gulp watch task.
from stream.
Pull request created: #3
from stream.
Closed by #3.
from stream.
Is there any way to detect that the next run of bundle.cache
was changed comparing to previous one? I need to store the output of bundle, not the cache itself. I pass the previous cache to next run of rollup
options
and it looks like cache is used indeed, resulting in much faster builds. But still I do not know actually was there a single change or anything was not altered?
from stream.
Related Issues (12)
- @rollup/stream incompatible with current nodejs? HOT 1
- Feature Request: Given a multi-entry-point configuration, output multiple chunks with known names as generated by Rollup HOT 4
- Error: You must supply an options object - but options object is being supplied HOT 1
- Gulp example misses output HOT 1
- Error: You must supply an options object - but options object is being supplied HOT 3
- Support for Rollup 3 HOT 2
- sourcemap true errors, sourcemap inline works (.js.map being passed through as asset) HOT 4
- Messages from Rollup plugins HOT 13
- Any plans to update this for compatibility with Rollup 2.x? HOT 1
- NPM Package out of date? HOT 2
- Workaround for output options issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stream.