ottomated
ottomated
@brunnerh one thing missing from that is ternary classes, i.e. ```svelte ``` vs ```svelte ``` (and yes, this can be done with string interpolation, but it causes performance issues as...
Does not work with language tools
Found an error case: https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAAyWJSwrDIBCGrxL-Zil1LxLoOWoXIY4wYKLEMVDEuxeb3fdoCBypwLwbjnUnGLxyhoJ885ByURSCQkn13EZpDw7TPJeYpDw9hbVG6e5wYj1fywAndtxJ_83quzfNoUNhT54Dk4eRs1L_9B8FLnc7gwAAAA==
If it's published under a beta tag, I'd consider supporting it now, but otherwise I'd need to wait until it's on NPM.
* **#6987** 👈 * `main` This stack of pull requests is managed by Graphite. Learn more about stacking. Join @ottomated and the rest of your teammates on Graphite
@Mr-Zero88 I know how symbols work. I'm saying it's unintuitive that changing an unrelated area of your code leads to symbols changing and breaking things, and suggesting a DX improvement.
@Rich-Harris After working out a [bigger repro](https://stackblitz.com/edit/sveltejs-hmr-repro-eb6in9pl?file=src%2Flib%2Fcart%2FCart.svelte), it seems like there's some bug that causes HMR to not reload the layout when the module script is changed.
Looking into this. SWC doesn't expose a function like that but their Rust API exposes a `parse_epxr()` function that can take something like `() => foo++}>increment` and spit out an...
SWC also exposes a `print` method that could be used instead of `esrap`!
Did research into this in #13444. It's definitely doable and worth the effort in my opinion but I don't know if it's worth targeting 5.0.