@@ -1,3 +1,5 @@
+export const root = typeof window === 'undefined' ? global : window;
+
 /** Copy own-properties from `props` onto `obj`.
  *	@returns obj
  *	@private
/** Copy own-properties from `props` onto `obj`.
 *	@returns obj
 *	@private
 */
export function extend(obj, props) {
	for (let i in props) obj[i] = props[i];
	return obj;
}



I was getting "window is undefined" errors. I couldn't see a convention around this in the source, though.