From 85a0d1aa716fd549e941b4b0faad6de7bd42ef68 Mon Sep 17 00:00:00 2001 From: Benjamin Coe Date: Wed, 30 May 2018 17:41:39 -0700 Subject: [PATCH] fix: should import @babel/template --- packages/istanbul-lib-instrument/src/visitor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/istanbul-lib-instrument/src/visitor.js b/packages/istanbul-lib-instrument/src/visitor.js index 2a1b6b6b..252f2d91 100644 --- a/packages/istanbul-lib-instrument/src/visitor.js +++ b/packages/istanbul-lib-instrument/src/visitor.js @@ -1,7 +1,7 @@ import {SourceCoverage} from './source-coverage'; import { SHA, MAGIC_KEY, MAGIC_VALUE } from './constants'; import {createHash} from 'crypto'; -import template from 'babel-template'; +import template from '@babel/template'; // istanbul ignore comment pattern const COMMENT_RE = /^\s*istanbul\s+ignore\s+(if|else|next)(?=\W|$)/; @@ -73,7 +73,7 @@ class VisitState { extractURL(node.leadingComments); extractURL(node.trailingComments); } - + // for these expressions the statement counter needs to be hoisted, so // function name inference can be preserved @@ -507,7 +507,7 @@ function shouldIgnoreFile(programNode) { const defaultProgramVisitorOpts = { coverageVariable: '__coverage__', ignoreClassMethods: [], - inputSourceMap: undefined + inputSourceMap: undefined }; /** * programVisitor is a `babel` adaptor for instrumentation.