How do you expose jQuery on the window object using webpack?
I have this in my webpack config
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery"
})
]
But when loading an external node module which relies on this it fails. Checking in the console window.jQuery is undefined. JQuery is loaded and available as I'm using it elsewhere before I added the new third-party module.