Why does exposing the Socket-IO.Client module to the global window in Webpack 5 only work with `require` and not `import`?
So we have a standard JavaScript project that is based on Webpack 5
. Until recently we have been pulling in Socket.io-client (1.7.2
) and exposing it globally to our application using the expose-loader
.