mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Remove commonjs from globals (#592)
This commit is contained in:
parent
cfa348fc7b
commit
aeed2db249
@ -1,6 +1,7 @@
|
||||
/* global window, global, document */
|
||||
module.exports = {
|
||||
window: typeof window !== 'undefined' ? window : global,
|
||||
global: typeof global !== 'undefined' ? global : window,
|
||||
document: typeof document !== 'undefined' ? document : {}
|
||||
};
|
||||
|
||||
const window_ = typeof window !== 'undefined' ? window : global;
|
||||
const global_ = typeof global !== 'undefined' ? global : window;
|
||||
const document_ = typeof document !== 'undefined' ? document : {};
|
||||
|
||||
export {window_ as window, global_ as global, document_ as document};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user