For the `window` export, we check `typeof exports === "undefined"`. That exports `module` to `window`, so we need to make sure that our check for CommonJS doesn't end up passing in the browser due to our own export.