Skip to content

Commit

Permalink
Better JSX-Remove React Tools, prefer detective-es6-1.1.3
Browse files Browse the repository at this point in the history
Issue pahen#61
  • Loading branch information
Dean Radcliffe committed May 3, 2016
1 parent f9d8fc3 commit 083d1f9
Show file tree
Hide file tree
Showing 4 changed files with 559 additions and 287 deletions.
3 changes: 1 addition & 2 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
4 changes: 2 additions & 2 deletions lib/parse/es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
var fs = require('fs'),
path = require('path'),
util = require('util'),
precinct = require('precinct'),
detective = require('detective-es6'),
colors = require('colors'),
Base = require('./base');

Expand Down Expand Up @@ -39,7 +39,7 @@ ES6.prototype.parseFile = function (filename) {
this.emit('parseFile', fileData);

if (/import.*from/m.test(fileData.src)) {
precinct(fileData.src).map(function (id) {
detective(fileData.src).map(function (id) {
var depFilename = this.resolve(path.dirname(fileData.filename), id);
if (depFilename) {
return this.normalize(depFilename);
Expand Down
Loading

0 comments on commit 083d1f9

Please sign in to comment.