Skip to content

Commit 93c3170

Browse files
committed
fix(index): use the type with metadata
1 parent bc8d021 commit 93c3170

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {WebpackConfig, get} from '@easy-webpack/core'
1+
import {WebpackConfigWithMetadata, get} from '@easy-webpack/core'
22
import * as webpack from 'webpack'
33

44
export = function jQuery({expose = true} = {}) {
5-
return function jQuery(this: WebpackConfig): WebpackConfig {
5+
return function jQuery(this: WebpackConfigWithMetadata): WebpackConfigWithMetadata {
66
const config = {
77
plugins: [
88
new webpack.ProvidePlugin({
@@ -11,7 +11,7 @@ export = function jQuery({expose = true} = {}) {
1111
'window.jQuery': 'jquery' // this doesn't expose jQuery property for window, but exposes it to every module
1212
})
1313
].concat(get(this, 'plugins', []))
14-
} as WebpackConfig
14+
} as WebpackConfigWithMetadata
1515

1616
if (expose) {
1717
config.module = {

0 commit comments

Comments
 (0)