Closed ceifa closed 2 years ago
This had been solved previously by importing directly from the ESM build of marked. But this caused a whole lot of other issues in other environments, so this is the appropriate way to use this package with Vite/SvelteKit until a better solution comes along.
Thanks for the issue report! It did show that this is something that should, at least, be documented in the README.
I hit the exact same problem. At least I am glad to see there's a workaround.
Fixed in 0.2.0
I'm converting my project to use pnpm instead of regular npm, but when I tried to run the project I received the following error:
And I fixed it adding this property to
svelte.config.js
(a workaround):I have a lot of dependencies and svelte-markdown was the only one with this problem, so I'm guessing it is something that should be fixed here, but I really don't know.