This configuration does not replace window[“jQuery”] with require(“jquery”) in knockout (v. 3.3.0) module.
What should I do to avoid exposing jQuery in window and provide knockout with jQuery?
new webpack.ProvidePlugin({
'window.jQuery': 'jquery',
'jQuery': 'jquery',
'window["jQuery"]': 'jquery'
})
@blazkovicz, if you are still interested on this, I solved this issue on my own by using a custom loader (maybe adding a generic text replacement loader would be a better solution):
ko-loader.js:
in webpack.config.js:
I hope that helps.