Comments (4)
The const dev = ..
thing should already work today. I don't what you expect in the const links = $const([
case to happen? Svelte somehow magically figuring out it doesn't need the each loop?
Both these cases sound like more general bundle optimizations, so I don't think a new rune is necessary/warranted.
from svelte.
The
const dev = ..
thing should already work today. I don't what you expect in theconst links = $const([
case to happen? Svelte somehow magically figuring out it doesn't need the each loop? Both these cases sound like more general bundle optimizations, so I don't think a new rune is necessary/warranted.
Yeah I think you got it. Maybe creating a new rune is unnecessary but is there any way to eliminate the each loop in build time?
from svelte.
Probably not in the way you imagine. Instead prerendering is used to achieve exactly what you describe. Sveltekit does not support "server components", that would be the perfect use case. You could prerender parts on component level instead of full pages.
from svelte.
Closing since as became clear the avenue towards achieving this is more holistic bundler/compiler work and not a rune.
from svelte.
Related Issues (20)
- `$state` looses reactivity with destructuring HOT 3
- Svelte5: default snippet inside component and overwriting on consuming HOT 6
- Reused element binding (`bind:this`) updates to `null` long after destruction HOT 3
- `" "` (space) in text nodes replaced with `""` (null string) in each blocks ([email protected]+) HOT 13
- $state rune in a .svelte.js/ts file not mutable from outside HOT 3
- Svelte 5 @next.148 broke Layercake HOT 3
- {#key} not working as parent of {#if} block HOT 2
- Svelte 5: effect_update_depth_exceeded with a simple code HOT 9
- Svelte 5 cannot delete items from initialized reactive `new Set([...])`
- Svelte 5: Nested form control bindings causes runtime error HOT 10
- Svelte 5: is there a way to type `{...props}`? HOT 2
- A simple component without script tag generates broken code when compiled HOT 4
- Reactive Set .size not updated after .delete() HOT 1
- Svelte 5: Transition doesn't worked in nested if statements HOT 3
- Svelte 5 REPL: cannot add *.ts files
- Svelte 5 REPL: reload button HOT 4
- Svelte 5 : Reactive array operations (filter, map...)
- It is not possible to declare states in static fields of a class HOT 1
- [Svelte 5] Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'nodeType') HOT 3
- Svelte 5: SSR Errors are not specific enough & can't be disabled HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte.