Skip to content

Conversation

@malinowskip
Copy link
Contributor

I managed to make the docs compile in Svelte 5 and I’m including the changes for reference here.

Non-obvious changes that made it work:

  • After upgrading Prettier to v3, the format function expects a plugins array where prettier-plugin-svelte must be provided. Otherwise, it fails to resolve the parser and throws an error.
  • For some reason, the docs only compile if the synchronous version of Prettier’s format is used.

Related: #1877 (comment)

@malinowskip malinowskip marked this pull request as ready for review November 12, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants