Skip to content

v0.1.2

Choose a tag to compare

@dnlbox dnlbox released this 22 Mar 00:35
· 63 commits to main since this release

Fixed

  • 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.