ForbesLindesay / browserify-middleware

express middleware for browserify, done right
http://browserify.org
MIT License
381 stars 66 forks source link

Cache munging causing failures with external #34

Closed ForbesLindesay closed 10 years ago

ForbesLindesay commented 10 years ago

The following doesn't work:

app.use('/client/twbs.js', browserify(require.resolve('twbs'), {}));
app.use('/client', browserify('./client', {
  external: ['twbs']
}));

but the following does:

app.use('/client/twbs.js', browserify(require.resolve('twbs'), {
  cache: false
}));
app.use('/client', browserify('./client', {
  external: ['twbs']
}));
ForbesLindesay commented 10 years ago

This is now resolved by including more of the options in the cache key.