diff --git a/docs/en/getting-started.html b/docs/en/getting-started.html index 5c53d4eb..c92da815 100644 --- a/docs/en/getting-started.html +++ b/docs/en/getting-started.html @@ -38,7 +38,7 @@ module.exportsconst ast = babylon.parse(code, {sourceType: 'module'}); return {ast}; -};
If you would like to plug-in babel, you can simply do that by passing the code to it:
const {transform} = require('@babel/core'); +};
If you would like to plug-in babel, you can simply do that by passing the code to it:
const {transformSync} = require('@babel/core'); module.exports.transform = file => { return transform(file.src, {