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 bc8d021 commit 93c3170
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {WebpackConfig, get} from '@easy-webpack/core'
import {WebpackConfigWithMetadata, get} from '@easy-webpack/core'
import * as webpack from 'webpack'

export = function jQuery({expose = true} = {}) {
return function jQuery(this: WebpackConfig): WebpackConfig {
return function jQuery(this: WebpackConfigWithMetadata): WebpackConfigWithMetadata {
const config = {
plugins: [
new webpack.ProvidePlugin({
Expand All @@ -11,7 +11,7 @@ export = function jQuery({expose = true} = {}) {
'window.jQuery': 'jquery' // this doesn't expose jQuery property for window, but exposes it to every module
})
].concat(get(this, 'plugins', []))
} as WebpackConfig
} as WebpackConfigWithMetadata

if (expose) {
config.module = {
Expand Down

0 comments on commit 93c3170

Please sign in to comment.