diff --git a/src/utils/globals.js b/src/utils/globals.js index 1bf3a35d..547fa45e 100644 --- a/src/utils/globals.js +++ b/src/utils/globals.js @@ -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};