jsdf / browserify-incremental

incremental rebuild for browserify
175 stars 13 forks source link

Cache isn't invalidated when dependency is changed to older version #35

Closed Macil closed 8 years ago

Macil commented 8 years ago

bar.js

var _ = require('lodash');
console.log(_.VERSION);
$ npm i lodash@3.10.1 browserify browserify-incremental
...
$ ./node_modules/.bin/browserifyinc bar.js -o bundle.js -v
412214 bytes written to bundle.js (0.51 seconds)
$ node bundle.js 
3.10.1
$ rm -r node_modules/
$ npm i lodash@3.10.0 browserify browserify-incremental
$ ./node_modules/.bin/browserifyinc bar.js -o bundle.js -v
412214 bytes written to bundle.js (0.03 seconds)
$ node bundle.js 
3.10.1
$ node bar.js
3.10.0

Issue doesn't happen when going to a newer version of a dependency.