dom_global_native.mjs simply exports global = globalThis. This is a counterpart to dom_global_shim.
When writing code which should isomorphically run in both DOM and non-DOM environments, import the pseudo-module dom_global, which should be auto-resolved to dom_global_native in browsers, and to dom_global_shim in non-browsers.
import * as dg from '@mitranim/js/dom_global'
console.log(dg.global)The following APIs are exported but undocumented. Check dom_global_native.mjs.