Skip to content

Commit ba34a7f

Browse files
committed
feature #10 Add window.jquery to autoProvidejQuery() (alOneh, weaverryan)
This PR was merged into the master branch. Discussion ---------- Add window.jquery to autoProvidejQuery() When using webpack it's common to also provide window.jQuery because some libraries use it this way. Commits ------- 39fe1d3 cs 63a2920 Add window.jquery to autoProvidejQuery()
2 parents 0b77618 + 39fe1d3 commit ba34a7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/WebpackConfig.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ class WebpackConfig {
233233
autoProvidejQuery() {
234234
this.autoProvideVariables({
235235
$: 'jquery',
236-
jQuery: 'jquery'
236+
jQuery: 'jquery',
237+
'window.jQuery': 'jquery'
237238
});
238239
}
239240

0 commit comments

Comments
 (0)