Skip to content

Commit

Permalink
Add shiki and vscode-oniguruma to default server-external packages.
Browse files Browse the repository at this point in the history
Shiki and vscode-oniguruma currently use node.js-specific APIs and require the user to add these two packages to their `next.config.js` in the `serverComponentsExternalPackages` section.

Related issues:
- shikijs/shiki#398
- vercel#44316
  • Loading branch information
selenecodes committed Jan 17, 2023
1 parent 4f410e4 commit 1a95ab6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/next/src/lib/server-external-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@
"tailwindcss",
"ts-node",
"typescript",
"webpack"
"webpack",
"shiki",
"vscode-oniguruma"
]

0 comments on commit 1a95ab6

Please sign in to comment.