Skip to content

Commit

Permalink
Support export default syntax. Fixes #73
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Oct 1, 2015
1 parent b4764e1 commit 9919f49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"vinyl-fs": false
},
"dependencies": {
"ast-types": "^0.8.3",
"ast-types": "^0.8.12",
"brfs": "^1.4.0",
"concat-stream": "^1.5.0",
"doctrine": "^0.6.4",
Expand Down
3 changes: 2 additions & 1 deletion test/fixture/es6.input.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
* @returns {Number} numberone
*/
var multiply = (a, b) => a * b;
module.exports = multiply;

export default multiply;
2 changes: 1 addition & 1 deletion test/fixture/es6.output.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
},
"file": "fixture/es6.input.js",
"code": "var multiply = (a, b) => a * b;\nmodule.exports = multiply;"
"code": "var multiply = (a, b) => a * b;\n\nexport default multiply;"
},
"returns": [
{
Expand Down

0 comments on commit 9919f49

Please sign in to comment.