create-t3-turbo icon indicating copy to clipboard operation
create-t3-turbo copied to clipboard

Expose generated prisma types in db package

Open ReinhardtR opened this issue 3 years ago • 3 comments

This is useful for importing stuff like enums from the schema.

ReinhardtR avatar Aug 25 '22 02:08 ReinhardtR

Not too keen on this as default, I almost never need to import my Prisma types so it would just increase bundle size of the app I think?

juliusmarminge avatar Aug 26 '22 00:08 juliusmarminge

That's fair, but will it be included in the bundle if you don't import from it? 🤔

ReinhardtR avatar Aug 26 '22 00:08 ReinhardtR

Maybe it's treeshaked, would have to analyze the bundle to say for sure

juliusmarminge avatar Aug 26 '22 00:08 juliusmarminge