Skip to content

Commit

Permalink
ignore both connect and mime
Browse files Browse the repository at this point in the history
  • Loading branch information
nateps committed Jun 22, 2012
1 parent 50a167c commit 9a9f16c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions lib/files.js
Expand Up @@ -114,15 +114,11 @@ function js(parentFilename, options, callback) {
// Needed for tests
if (!parentFilename) return callback();

// TODO: Move this to config:
// Express will try to include mime, which won't work in the browser
// It doesn't actually need this for routing, so we just ignore it
if (options.ignore) {
options.ignore.push('mime');
} else {
options.ignore = ['mime'];
}
options.entry = parentFilename
// TODO: Move this to Tracks:
// Express will try to include mime or connect, which won't work in the
// browser. It doesn't actually need this for routing, so just ignore it
options.ignore = ['connect', 'mime'];
options.entry = parentFilename;
options.exports = ['require'];

inlineFile = join(dirname(parentFilename), 'inline.js');
Expand Down

0 comments on commit 9a9f16c

Please sign in to comment.