ESM support in Prisma Client
I'm facing difficulty spinning up my backend application when using a shared package that contains the Prisma DB client. For context, my server uses the ESM module type, and I was wondering if it's possible to convert the generated Prisma client into ESM.
I explored Prisma’s moduleFormat: "esm" option, but it seems to omit key exports like error classes and other members from the Prisma namespace. Can you help me understand what's going wrong or if there's an additional fix required?
I'm using Turborepo and tsup to compile my database package and also generate .d.ts files to export types. Let me know if anything specific needs to be configured to make ESM work properly.
I explored Prisma’s moduleFormat: "esm" option, but it seems to omit key exports like error classes and other members from the Prisma namespace. Can you help me understand what's going wrong or if there's an additional fix required?
I'm using Turborepo and tsup to compile my database package and also generate .d.ts files to export types. Let me know if anything specific needs to be configured to make ESM work properly.