wd-David/esbuild-plugin-pino

pino-pretty nor really bundled with SvelteKit build

Closed this issue · 4 comments

I tried to use the plugin with SvelteKit, and was somehow successful, except that the bundled app apparently cannot find pino-pretty, I received this during the start of application:

Error: unable to determine transport target for "pino-pretty"

That’s an interesting use case!
May I know the reason you use this library with SvelteKit?

You're right. While pino-pretty doesn't recommend installing it as dep but devDep here.

Not sure how you build your docker image, in my use case, I bundled my fastify app (pino-pretty in dep) and only copied production code w/o node_modules in my Dockerfile, and my docker image only used 180 MB.