Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
189ac1b to
63d6446
Compare
1803144 to
19d2781
Compare
19d2781 to
0310d54
Compare
0310d54 to
908c281
Compare
Can you elaborate? We're about to remove
|
|
Thank you for the confirmation! 🙌🏻
Given this, my understanding is that there are no longer any particular concerns now. As I confirmed in original issue, if supporting only Svelte 5 is acceptable, then not supporting this option at all could also be considered. |
|
Only supporting Svelte 5 is totally acceptable. Probably makes your lives a bit easier (you can start using the modern AST right away instead of having to adjust that code in a few years when the legacy AST is gone), and also incentivises people more to upgrade to Svelte 5, which is in our interests. As for "what is the modern AST" - I've just put up a PR that switched to the modern parser format, there you can see the difference (it's mostly renaming of nodes and how the children are represented on the blocks/elements): sveltejs/prettier-plugin-svelte#512 |
|
In that sense, our use case is not calling It seems there isn't such an option, so if we only want to support modern ASTs, I think we'll have to wait for the v4 release of the prettier-plugin-svelte itself. (right?) I think we can either wait for that, or release it soon as is. (The work is already complete). |
908c281 to
aa2e750
Compare
|
Not having Svelte support is currently the only blocker for us in adopting oxfmt. So it would be great if we could get Svelte 4 support in oxfmt, as the work is already done. |
|
Oh I didn't realize that you basically only setup a bridge to JS-land here and just use prettier-plugin-svelte. In that case you can go ahead now, because as I understand it you can just bundle a new version of prettier-plugin-svelte once we release the new major - or is even that not required and it's just a peer dependency in the sense of "user installs it"? |
We don't plan to bundle And if we were to bundle a backwards-compatible plugin at this point, a major update to that plugin would become a breaking change for Oxfmt, which we want to avoid. We're fine with waiting for the next version of the plugin to be released, but do you have an ETA? (Apologies if that's a difficult question to answer. 🙇🏻) |

Part of #19715
TODOs
svelte@5svelteStrictMode, which will be alwaystruepeerDepsexperimental.chunkOptimizationis not disabled rolldown/rolldown#8522mainbranch (json-schema > TS type PR)svelteextension and language id tooxfmtoxc-vscode#111