Skip to content

Commit 9919f49

Browse files
committed
Support export default syntax. Fixes #73
1 parent b4764e1 commit 9919f49

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"vinyl-fs": false
1616
},
1717
"dependencies": {
18-
"ast-types": "^0.8.3",
18+
"ast-types": "^0.8.12",
1919
"brfs": "^1.4.0",
2020
"concat-stream": "^1.5.0",
2121
"doctrine": "^0.6.4",

test/fixture/es6.input.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
* @returns {Number} numberone
44
*/
55
var multiply = (a, b) => a * b;
6-
module.exports = multiply;
6+
7+
export default multiply;

test/fixture/es6.output.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
},
3636
"file": "fixture/es6.input.js",
37-
"code": "var multiply = (a, b) => a * b;\nmodule.exports = multiply;"
37+
"code": "var multiply = (a, b) => a * b;\n\nexport default multiply;"
3838
},
3939
"returns": [
4040
{

0 commit comments

Comments
 (0)