ITADN

Bunding Pino with esbuild for an ESM target

#2362ClosedKnisterPeter 创建于 2025-12-08
K
KnisterPetercommented
Hi, thanks for the great pino library. 😃 We have an issue with it bundling our application with esbuild for a target platform using ESM (lambda in our case). We could bundle for commonjs as well, but that as a lot of issues wth other libraries. The main issue we currently have is that pino does execute `require('node:os')` which fails with an error like: > Dynamic require of "node:os" is not supported This is an error message from esbuild after running the bundled application. Do you have a suggestion how to resolve this issue? Any help is greatly appreciated.
关闭于 2026-01-01 9 条评论