From 6039c9748f4012e3fa28ecec7a52451055b0c091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bazyli=20Brzo=CC=81ska?= Date: Sat, 29 Oct 2016 13:16:54 +0200 Subject: [PATCH] fix(index): migrate loaders => rules BREAKING CHANGE: requires webpack@>=2.1.0.beta.25 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c4ca31e..9149ce8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,7 +12,7 @@ export = function istanbul({include = undefined, exclude = undefined}:{include?, return function istanbul(this: WebpackConfigWithMetadata): WebpackConfigWithMetadata { return { module: { - loaders: get(this, 'module.loaders', []).concat([{ + rules: get(this, 'module.rules', []).concat([{ test: /\.(js|ts)$/, loader: 'sourcemap-istanbul-instrumenter', query: {