variable hasEsmimport { hasEsm } from "https://deno.land/x/polkadot@0.2.19/util/mod.ts"; true if the environment is ESM