Skip to content

Commit 619c1e9

Browse files
Azzerty23claude
andcommitted
fix(build): export CoreReadOperations from ORM browser stub
transaction.js (generated by the tanstack-query build) imports CoreReadOperations as a runtime value from @zenstackhq/orm. Re-export it from the browser stub so Turbopack can resolve it without pulling in node:async_hooks. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bb9b2e0 commit 619c1e9

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

packages/orm/src/browser.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,16 @@
22
// This stub is used by browser bundlers (e.g. Turbopack, webpack) to prevent
33
// Node.js-specific modules (node:async_hooks, etc.) from entering client bundles.
44
// Types are still resolved from the main entry via the "types" export condition.
5-
export {};
5+
//
6+
// Pure data constants needed at runtime by client-side adapters (e.g. transaction.js)
7+
// are re-exported here since they carry no Node.js dependencies.
8+
9+
export const CoreReadOperations = [
10+
'findMany',
11+
'findUnique',
12+
'findFirst',
13+
'count',
14+
'aggregate',
15+
'groupBy',
16+
'exists',
17+
] as const;

0 commit comments

Comments
 (0)