Fix support for node.js
Webpack 4's UMD output would, for some reason, dump window as the global object by default. This updates the webpack config to dump a check instead of blindly using window.
Webpack 4's UMD output would, for some reason, dump window as the global object by default. This updates the webpack config to dump a check instead of blindly using window.