Skip to content

Commit

Permalink
feat: use extended babylon support; adding features such as jsx (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanargentiero authored and bcoe committed Mar 27, 2017
1 parent 4d71d5e commit 11c2438
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/istanbul-lib-instrument/src/instrumenter.js
Expand Up @@ -80,7 +80,13 @@ class Instrumenter {
const opts = this.opts;
const ast = babylon.parse(code, {
allowReturnOutsideFunction: opts.autoWrap,
sourceType: opts.esModules ? "module" : "script"
sourceType: opts.esModules ? "module" : "script",
plugins: [
'asyncGenerators',
'dynamicImport',
'flow',
'jsx'
]
});
const ee = programVisitor(t, filename, {
coverageVariable: opts.coverageVariable,
Expand Down

0 comments on commit 11c2438

Please sign in to comment.