Skip to content

Commit 40d535f

Browse files
Add a hacky workaround [see #2]
This needs to be removed once the PR in browserify is closed
1 parent e9f4d4b commit 40d535f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/send.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ function compile(path, options, cb) {
3131
for (var i = 0; i < (options.transform || []).length; i++) {
3232
b.transform(options.transform[i]);
3333
}
34+
//todo: remove this hacky workarround
35+
b.on('error', function (err) {
36+
//don't try this at home, hacky workaround alert
37+
return cb(err.toString());
38+
});
3439
b.bundle({
3540
insertGlobals: options.insertGlobals,
3641
detectGlobals: options.detectGlobals,

0 commit comments

Comments
 (0)