Skip to content

Commit

Permalink
Merge pull request #32 from icodeforlove/patch-1
Browse files Browse the repository at this point in the history
added support for react-tools transform options
  • Loading branch information
ericclemmons committed Jul 18, 2014
2 parents e309772 + eba76bd commit b6d5737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/transformers.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var Transformers = {};

Transformers.source = transform;

Transformers.browserify = function(file) {
Transformers.browserify = function(file, options) {
var source = '';

return through(function(data) {
Expand All @@ -23,7 +23,7 @@ Transformers.browserify = function(file) {
var result;

try {
result = Transformers.source(source);
result = Transformers.source(source, options);
} catch (error) {
error.message += ' in "' + file + '"';

Expand Down

0 comments on commit b6d5737

Please sign in to comment.