-
Notifications
You must be signed in to change notification settings - Fork 101
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
post transform file cache #116
Comments
Update: I captured the raw records being emitted by the transform stream on the Is there any concern around this approach? AFAICT, this seems to work correctly and significantly speeds up subsequent runs of module-deps. |
@DonutEspresso I can't answer all of your questions, but I've been wanting that stuff to be better documented and more consistent for a long time.
Certain properties of those record objects are meaningful at certain phases of the pipeline (module-deps being one of the phases). I think You could also take a look at what watchify does, as I think it monkeys with that cache data, and its purpose is to speed up subsequent browserify bundling operations on mostly the same set of files. Related: #72 |
Thanks @jmm, appreciate the info and the links. I had a lot of trouble trying to "recreate" the records. I'd get inconsistent output from the stream when doing so, probably because I was feeding it bad data. Good to know I'm not the only one confused. :) In the end, I simply captured the emitted records "as-is" without changing them (all fields intact), then feeding them back in next time. That got me the consistent output from run to run, so it appears to be working so far AFAICT, all the records emitted appeared to have I think it might be worthwhile delineating out what things are specific to module-deps, vs in the context of browserify. |
Hi folks, I have some tooling built on top of module-deps. Often I already have post transformed source and deps tree information ready to go. It looks like if I provide
opts.cache
it skips reading/parsing source and applying transforms. However, it's unclear to me what the format of a "file object" looks like. Poking through thewalk()
function it looks like I need at leastsource
,package
, anddeps
, so would the format be something like this?My two questions are:
file
,id
,entry
, etc.) but are those needed in the cache?package
field be?I'll start running my own tests and exploring, but any guidance would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: