Comments (1)
I can't reproduce this issue in Browserify-incremental 3.0.1 or the current version.
package.json
{
"name": "foo",
"version": "1.0.0",
"description": "",
"main": "foo.js",
"dependencies": {
"babelify": "^7.2.0",
"browserify": "^13.0.0",
"browserify-incremental": "^3.1.1",
"q": "^1.4.1"
},
"license": "ISC"
}
test.js
var path = require('path');
var Q = require('q');
var browserify = require('browserify-incremental'),
b = browserify({cacheFile: path.join(__dirname, 'browserify-cache.json')})
.transform(require('babelify'))
.require('./foo.js');
return Q.ninvoke(b, 'bundle')
.then(function(buf) {
console.log('success', buf);
})
.catch(function(err) {
console.error('error', err);
});
foo.js
console.log('foo');
$ node test.js
success <Buffer 72 65 71 75 69 72 65 3d 28 66 75 6e 63 74 69 6f 6e 20 65 28 74 2c 6e 2c 72 29 7b 66 75 6e 63 74 69 6f 6e 20 73 28 6f 2c 75 29 7b 69 66 28 21 6e 5b 6f ... >
$ cat browserify-cache.json
{"modules":{"/private/tmp/foo/foo.js":{"file":"/private/tmp/foo/foo.js","source":"console.log('foo');\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZvby5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxRQUFRLEdBQVIsQ0FBWSxLQUFaIiwiZmlsZSI6ImZvby5qcyIsInNvdXJjZXNDb250ZW50IjpbImNvbnNvbGUubG9nKCdmb28nKTtcbiJdfQ==","deps":{}}},"mtimes":{"/private/tmp/foo/foo.js":1459458561000},"dependentFiles":{}}
Running test.js logs the success statement, a healthy cache file is made, and any log statements I add to browserify-cache-api's 'end' event callback get called.
from browserify-incremental.
Related Issues (20)
- not using cache between builds HOT 2
- Crypto library does not work once cache is used HOT 4
- Make browserify-cache.json a hidden file. HOT 1
- Exposed module requiring other exposed module results in error when using cache HOT 2
- Cache isn't invalidated if transform options are changed HOT 6
- fullpaths option HOT 3
- bundle-collapser plugin doesn't work from commandline HOT 1
- Using the same cache from multiple entry points creates invalid bundles HOT 2
- cache file source gets really messed up for .json files HOT 1
- Multiple caches are very slow.
- Use with watchify HOT 1
- Changes to the main entry with in memory cache are ignored HOT 4
- When used with require-globify cache is not invalidated properly
- Cache isn't invalidated when dependency is changed to older version
- Cache isn't invalidated when file is removed HOT 1
- Missing cache invalidation? HOT 3
- Doesn't work if .pipe() not called
- using md5/sha1 for caches instead of / in addition to last modified time? HOT 1
- Just wanted to say "thanks" + leave a note
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 browserify-incremental.