Skip to content

Commit

Permalink
Better JSX support via precinct module
Browse files Browse the repository at this point in the history
Issue pahen#61

prefer detective-es6-1.1.3

Revert to esold

Updated shrinkwrap
  • Loading branch information
Dean Radcliffe committed May 5, 2016
1 parent a3f44e7 commit ce18493
Show file tree
Hide file tree
Showing 8 changed files with 586 additions and 289 deletions.
2 changes: 1 addition & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@
"describe",
"it"
]
}
}
7 changes: 2 additions & 5 deletions lib/parse/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ var fs = require('fs'),
EventEmitter = require('events').EventEmitter,
commondir = require('commondir'),
finder = require('walkdir'),
coffee = require('coffee-script'),
jsx = require('react-tools');
coffee = require('coffee-script');

/**
* Traversing `src` and fetches all dependencies.
Expand Down Expand Up @@ -159,8 +158,6 @@ Base.prototype.getFileSource = function (filename) {
header: false,
bare: true
});
} else if (filename.match(this.jsxExtRegEx)) {
src = jsx.transform(src);
}

return src;
Expand All @@ -185,4 +182,4 @@ Base.prototype.sortDependencies = function () {
*/
Base.prototype.replaceBackslashInPath = function (path) {
return path.replace(/\\/g, '/');
};
};
2 changes: 1 addition & 1 deletion lib/parse/es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ ES6.prototype.parseFile = function (filename) {
}

return [];
};
};
Loading

0 comments on commit ce18493

Please sign in to comment.