Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
fix: use latest API (loader-utils) (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlewis92 authored and michael-ciniawsky committed Jun 28, 2017
1 parent 861b70a commit 27cf4eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import istanbulLibInstrument from 'istanbul-lib-instrument';
import { createInstrumenter } from 'istanbul-lib-instrument';
import loaderUtils from 'loader-utils';
import convert from 'convert-source-map';

Expand All @@ -10,8 +10,8 @@ export default function (source, sourceMap) {
srcMap = inlineSourceMap.sourcemap;
}

const userOptions = loaderUtils.parseQuery(this.query);
const instrumenter = istanbulLibInstrument.createInstrumenter(
const userOptions = loaderUtils.getOptions(this);
const instrumenter = createInstrumenter(
Object.assign({ produceSourceMap: this.srcMap }, userOptions),
);

Expand Down

0 comments on commit 27cf4eb

Please sign in to comment.