File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- import { WebpackConfig , get } from '@easy-webpack/core'
1
+ import { WebpackConfigWithMetadata , get } from '@easy-webpack/core'
2
2
import * as webpack from 'webpack'
3
3
4
4
export = function jQuery ( { expose = true } = { } ) {
5
- return function jQuery ( this : WebpackConfig ) : WebpackConfig {
5
+ return function jQuery ( this : WebpackConfigWithMetadata ) : WebpackConfigWithMetadata {
6
6
const config = {
7
7
plugins : [
8
8
new webpack . ProvidePlugin ( {
@@ -11,7 +11,7 @@ export = function jQuery({expose = true} = {}) {
11
11
'window.jQuery' : 'jquery' // this doesn't expose jQuery property for window, but exposes it to every module
12
12
} )
13
13
] . concat ( get ( this , 'plugins' , [ ] ) )
14
- } as WebpackConfig
14
+ } as WebpackConfigWithMetadata
15
15
16
16
if ( expose ) {
17
17
config . module = {
You can’t perform that action at this time.
0 commit comments