Memory leak when loading pino via node --import with a transport configured
potentially related to #2225 as it also only appears to happen when a transport is configured.
Minimal reproduction:
```ts
// preload.js
import { pino } from 'pino';
console.log("module being loaded over and over again");
const log = pino({
transport: {
target: 'pino/file',
},
});
```
```ts
// index.js
setInterval(() => {
console.log(process.memoryUsage());
}, 1000);
```
and run `node --import=./preload.js index.js`
关闭于 2026-01-13 2 条评论