aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-bootstrap-select/webpack.config.d/jquery.js
diff options
context:
space:
mode:
Diffstat (limited to 'kvision-modules/kvision-bootstrap-select/webpack.config.d/jquery.js')
-rw-r--r--kvision-modules/kvision-bootstrap-select/webpack.config.d/jquery.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/kvision-modules/kvision-bootstrap-select/webpack.config.d/jquery.js b/kvision-modules/kvision-bootstrap-select/webpack.config.d/jquery.js
index bf5a1a20..e6c6b219 100644
--- a/kvision-modules/kvision-bootstrap-select/webpack.config.d/jquery.js
+++ b/kvision-modules/kvision-bootstrap-select/webpack.config.d/jquery.js
@@ -1,5 +1,9 @@
-config.plugins.push(new webpack.ProvidePlugin({
- $: "jquery",
- jQuery: "jquery",
- "window.jQuery": "jquery"
-}));
+;(function() {
+ const webpack = require('webpack')
+
+ config.plugins.push(new webpack.ProvidePlugin({
+ $: "jquery",
+ jQuery: "jquery",
+ "window.jQuery": "jquery"
+ }));
+})();