Skip to content

Commit

Permalink
Fix: Keep compatibility with node < 5
Browse files Browse the repository at this point in the history
  • Loading branch information
artberri committed Dec 7, 2017
1 parent 6472f2f commit db23903
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.js
Expand Up @@ -8,9 +8,9 @@ export default function (options = {}) {
transform (code, id) {
if (!filter(id)) return;

let instrumenter;
let sourceMap = !!options.sourceMap;
let opts = Object.assign({}, options.instrumenterConfig);
var instrumenter;
var sourceMap = !!options.sourceMap;
var opts = Object.assign({}, options.instrumenterConfig);

if (sourceMap) {
opts.codeGenerationOptions = Object.assign({},
Expand All @@ -24,7 +24,7 @@ export default function (options = {}) {

code = instrumenter.instrumentSync(code, id);

let map = sourceMap ?
var map = sourceMap ?
instrumenter.lastSourceMap().toJSON() :
{mappings: ''};

Expand Down

0 comments on commit db23903

Please sign in to comment.