Skip to content

Commit

Permalink
feat: Add bigInt and importMeta to default parser plugins. (#356)
Browse files Browse the repository at this point in the history
This allows code with these features to be instrumented without having
to reconfigure the parser plugins.

Fixes #338
  • Loading branch information
coreyfarrell committed Apr 6, 2019
1 parent 8867afc commit fb4d6ed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/istanbul-lib-instrument/src/instrumenter.js
Expand Up @@ -21,9 +21,18 @@ export function defaultOpts() {
ignoreClassMethods: [],
sourceMapUrlCallback: null,
debug: false,
/* babel parser plugins are to be enabled when the feature is stage 3 and
* implemented in a released version of node.js */
plugins: [
'asyncGenerators',
'bigInt',
/* Verify and add upon release of node.js 12:
* classProperties
* classPrivateProperties
* classPrivateMethods
*/
'dynamicImport',
'importMeta',
'objectRestSpread',
'optionalCatchBinding',
'flow',
Expand Down

0 comments on commit fb4d6ed

Please sign in to comment.