Remove commonjs from globals (#592)

This commit is contained in:
Bogdan Chadkin 2018-09-13 00:47:44 +03:00 committed by Ib Green
parent cfa348fc7b
commit aeed2db249

View File

@ -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};