I'm trying to expose some libraries like lodash to be available to the outside world via window object,
I've tried the shimming way but doesn't work https://webpack.js.org/guides/shimming/
plugins: [
new webpack.ProvidePlugin({
_: 'lodash',
}),
],
And i also tried the expose loader https://www.npmjs.com/package/expose-loader but it doesn't seem to work in webpack 4.
How to expose some libraries like lodash to be available to the outside world via window object ?
Thanks in advance