rehype-pretty / rehype-pretty-code

Beautiful code blocks for Markdown or MDX.

Home Page:https://rehype-pretty.pages.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"fileURLToPath" is not exported by "__vite-browser-external"

bennymi opened this issue · comments

Hi, I'm currently getting this error on a failed build on Vercel for my SvelteKit app:

RollupError: "fileURLToPath" is not exported by "__vite-browser-external", imported by 
"node_modules/.pnpm/rehype-pretty-code@0.10.0_shiki@0.14.3/node_modules/rehype-pretty-code/dist/rehype-pretty-code.js".

It seems to come from the test file.

Is there a way to solve this issue? Maybe excluding test files from the npm package?

This might be fixed in v0.12.0, can you check?