Skip to content

Commit 3bb0bcb

Browse files
authored
Add pino-related packages to server-external-packages (#86884)
1 parent 85c3f2e commit 3bb0bcb

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

docs/01-app/03-api-reference/05-config/01-next-config-js/serverExternalPackages.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne
7373
- `onnxruntime-node`
7474
- `oslo`
7575
- `pg`
76+
- `pino`
77+
- `pino-pretty`
78+
- `pino-roll`
7679
- `playwright`
7780
- `playwright-core`
7881
- `postcss`
@@ -86,8 +89,9 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne
8689
- `sharp`
8790
- `shiki`
8891
- `sqlite3`
89-
- `ts-node`
92+
- `thread-stream`
9093
- `ts-morph`
94+
- `ts-node`
9195
- `typescript`
9296
- `vscode-oniguruma`
9397
- `webpack`

docs/02-pages/04-api-reference/04-config/01-next-config-js/serverExternalPackages.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne
7373
- `onnxruntime-node`
7474
- `oslo`
7575
- `pg`
76+
- `pino`
77+
- `pino-pretty`
78+
- `pino-roll`
7679
- `playwright`
7780
- `playwright-core`
7881
- `postcss`
@@ -86,8 +89,9 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne
8689
- `sharp`
8790
- `shiki`
8891
- `sqlite3`
89-
- `ts-node`
92+
- `thread-stream`
9093
- `ts-morph`
94+
- `ts-node`
9195
- `typescript`
9296
- `vscode-oniguruma`
9397
- `webpack`

packages/next/src/lib/server-external-packages.jsonc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@
6565
"onnxruntime-node",
6666
"oslo",
6767
"pg",
68+
// [email protected]/lib/transport.js passes `join(__dirname, 'worker.js')` to thread-stream which ends
69+
// up `require`ing that filepath, leading to
70+
// `Cannot find module '/ROOT/node_modules/.pnpm/[email protected]/node_modules/pino/lib/worker.js'`
71+
"pino",
72+
// A "plugin" that is passed to pino as a string (and is then required in a worker)
73+
"pino-pretty",
74+
// A "plugin" that is passed to pino as a string (and is then required in a worker)
75+
"pino-roll",
6876
"playwright",
6977
"playwright-core",
7078
"postcss",
@@ -80,9 +88,12 @@
8088
"sharp",
8189
"shiki",
8290
"sqlite3",
83-
"ts-node",
91+
// dynamic `new Worker` call in [email protected]/index.js which pulls in various non-code files
92+
// as well (trying to parse README and invalid test files)
93+
"thread-stream",
8494
// Slow to compile because it pulls in typescript
8595
"ts-morph",
96+
"ts-node",
8697
"typescript",
8798
"vscode-oniguruma",
8899
"webpack",

0 commit comments

Comments
 (0)