JacobWeisenburger / zod_utilz

Framework agnostic utilities for Zod
MIT License
158 stars 9 forks source link

Does anyone know how to tree-shake dependencies? #1

Open JacobWeisenburger opened 1 year ago

JacobWeisenburger commented 1 year ago

I'm looking for a way to tree-shake dependencies such as lodash. Does someone know how to do this using Deno to Node Transform?

JacobWeisenburger commented 1 year ago

https://github.com/denoland/dnt/issues/258

KyleGashler commented 6 months ago

probably not new info for you but just make sure you're using full path imports wherever you can and avoid barrel imports. Here's an old stack overflow discussion on lodash in particular: https://stackoverflow.com/questions/35250500/correct-way-to-import-lodash.