Skip to content
This repository was archived by the owner on Mar 29, 2018. It is now read-only.

Commit 512a36f

Browse files
Update to latest recast.
recast v0.6.x understands ES6 and so does not require including esprima harmony.
1 parent eff6844 commit 512a36f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
var esprima = require('esprima');
21
var recast = require('recast');
32
var through = require('through');
43
var b = recast.types.builders;
@@ -26,7 +25,6 @@ function compile(code, options) {
2625
options = options || {};
2726

2827
var recastOptions = {
29-
esprima: esprima,
3028
sourceFileName: options.sourceFileName,
3129
sourceMapName: options.sourceMapName
3230
};

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
},
88
"dependencies": {
99
"through": "^2.3",
10-
"recast": "^0.5",
11-
"esprima": "git+https://github.com/ariya/esprima.git#harmony"
10+
"recast": "^0.6"
1211
},
1312
"devDependencies": {
1413
"mocha": "^1.19",

0 commit comments

Comments
 (0)