News for hackers. Stuff that matters.
Re:Svelte 4 by hajile on Thursday June 22, 2023 @03:50PM (#36437782)
What code does Svelte use internally vs what code winds up compiled into your components? Last I checked, MOST of the code wound up in your components. In fact, this was their entire argument for why people should use Svelte when it launched.

Just look at their "Hello World" application on the Svelte website. 5 lines of code transform into 45 lines of code.

Re:Svelte 4 by afavour on Thursday June 22, 2023 @04:09PM (#36438128)
If two components use the same code it’s hoisted and both components use the same function declaration.