You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deno compatibility — tsup/esbuild silently strips the node: prefix from
built-in imports in the bundle output, so import { createRequire } from "node:module"
became import { createRequire } from "module" in the dist files, which Deno rejects.
The real fix eliminates the createRequire import entirely: the package version is now
read from package.json at build time in tsup.config.ts and injected as __PACKAGE_VERSION__ via esbuild's define option. The version becomes a plain inlined
string in the bundle with no runtime Node.js built-in import.