1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import { setGlobal } from "./non_shared_2.mjs"; globalThis["loaded"].push(1); globalThis["counter"] = 0; let counter = 0; export function getCounter() { return counter; } export function incCounter() { counter++; } export function putCounter() { setGlobal("counter", counter); }