diff --git a/package.json b/package.json index cd1fca2d5..52ef05b21 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/fixture/es6.input.js b/test/fixture/es6.input.js index 8c16540ee..3497c0b01 100644 --- a/test/fixture/es6.input.js +++ b/test/fixture/es6.input.js @@ -3,4 +3,5 @@ * @returns {Number} numberone */ var multiply = (a, b) => a * b; -module.exports = multiply; + +export default multiply; diff --git a/test/fixture/es6.output.json b/test/fixture/es6.output.json index e4cedf3d5..6d70c93a4 100644 --- a/test/fixture/es6.output.json +++ b/test/fixture/es6.output.json @@ -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": [ {