From 0835041157b999060e480ee3c0b628d217dfab26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bazyli=20Brzo=CC=81ska?= Date: Sat, 29 Oct 2016 03:38:13 +0200 Subject: [PATCH] fix(index): use the type with metadata --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 8fb9551..7165911 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import {WebpackConfig, get} from '@easy-webpack/core' +import {WebpackConfigWithMetadata, get} from '@easy-webpack/core' import * as path from 'path' /** @@ -6,7 +6,7 @@ import * as path from 'path' * See: https://github.com/webpack/json-loader */ export = function json({exclude = null} = {}) { - return function json(this: WebpackConfig): WebpackConfig { + return function json(this: WebpackConfigWithMetadata): WebpackConfigWithMetadata { return { module: { loaders: get(this, 'module.loaders', []).concat([{