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 61dbe56 commit 0835041
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,12 +1,12 @@
import {WebpackConfig, get} from '@easy-webpack/core'
import {WebpackConfigWithMetadata, get} from '@easy-webpack/core'
import * as path from 'path'

/**
* Json loader support for *.json files.
* 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([{
Expand Down

0 comments on commit 0835041

Please sign in to comment.