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