Skip to content

Commit

Permalink
fix(index): use the type with metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
niieani committed Oct 29, 2016
1 parent 6acb29c commit 5641d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {WebpackConfig, get} from '@easy-webpack/core'
import {WebpackConfigWithMetadata, get} from '@easy-webpack/core'
import * as path from 'path'

/**
Expand All @@ -9,7 +9,7 @@ import * as path from 'path'
*/
// NOTE: Currently breaks with Webpack >=2
export = function istanbul({include = undefined, exclude = undefined}:{include?, exclude?} = {}) {
return function istanbul(this: WebpackConfig): WebpackConfig {
return function istanbul(this: WebpackConfigWithMetadata): WebpackConfigWithMetadata {
return {
module: {
postLoaders: get(this, 'module.postLoaders', []).concat([{
Expand Down

0 comments on commit 5641d3f

Please sign in to comment.