From 510c485857a216dc83a9fbc0dd43abb7a1215acc Mon Sep 17 00:00:00 2001 From: CJ Brewer Date: Fri, 24 Apr 2026 10:22:09 -0600 Subject: [PATCH] fix: evlog bundling --- .changeset/bundle-evlog-cjs.md | 5 +++++ packages/stack/tsup.config.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/bundle-evlog-cjs.md diff --git a/.changeset/bundle-evlog-cjs.md b/.changeset/bundle-evlog-cjs.md new file mode 100644 index 00000000..b30b9d30 --- /dev/null +++ b/.changeset/bundle-evlog-cjs.md @@ -0,0 +1,5 @@ +--- +"@cipherstash/stack": patch +--- + +Bundle `evlog` into the CJS output. `evlog` is pure ESM (no `require` condition in its `exports` map), so CJS consumers of `@cipherstash/stack` (e.g. webpack bundles) were failing with `ERR_PACKAGE_PATH_NOT_EXPORTED` when the stack's `index.cjs` tried to `require("evlog")`. `evlog` is now inlined at build time and no longer resolved at runtime. diff --git a/packages/stack/tsup.config.ts b/packages/stack/tsup.config.ts index e46103b5..2bcb6f2c 100644 --- a/packages/stack/tsup.config.ts +++ b/packages/stack/tsup.config.ts @@ -22,5 +22,6 @@ export default defineConfig([ target: 'es2022', tsconfig: './tsconfig.json', external: ['drizzle-orm', '@supabase/supabase-js'], + noExternal: ['evlog'], }, ])