0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-21 19:38:58 +01:00
Cybernetically enhanced web apps https://svelte.dev/
Go to file
Paolo Ricciuti 8a8e6f70e8
fix: avoid marking subtree as dynamic for inlined attributes (#14269)
* fix: avoid marking subtree as dynamic for inlined attributes

* fix: i'm a silly goose 🪿

* chore: refactor `is_inlinable_expression` to accept the attribute

* feat: inline dom expression too

* fix: special case literals with `"` in it and fix standalone case

* chore: simpler check first

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>

* typo

* add more stuff to snapshot test

* simplify/speedup by doing the work once, during analysis

* simplify

* simplify - no reason these cases should prevent inlining

* return template

* name is incorrect

* name is incorrect

* fix escaping

* no longer necessary

* remove obsolete description

* better concatenation

* fix test

* do the work at runtime

* fix another thing

* tidy

* tidy up

* simplify

* simplify

* fix

* note to self

* another

* simplify

* more accurate name

* simplify

* simplify

* explain what is happening

* tidy up

* simplify

* better inlining

* update test

* colocate some code

* better inlining

* use attribute metadata

* Update packages/svelte/src/compiler/phases/2-analyze/visitors/Identifier.js

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>

* Apply suggestions from code review

---------

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2024-11-14 12:48:11 -05:00
.changeset fix: avoid marking subtree as dynamic for inlined attributes (#14269) 2024-11-14 12:48:11 -05:00
.github fix: find the right sha for logging (#14159) 2024-11-05 17:05:21 +01:00
.vscode chore: unify sandbox (#13012) 2024-08-26 11:26:45 +02:00
benchmarking chore: improve internal benchmarking (#13620) 2024-10-16 07:05:56 -04:00
documentation docs: fix typo (#14232) 2024-11-10 05:31:50 -08:00
packages/svelte fix: avoid marking subtree as dynamic for inlined attributes (#14269) 2024-11-14 12:48:11 -05:00
playgrounds/sandbox bump vite (#13281) 2024-09-17 06:08:20 -04:00
sites/svelte-5-preview chore: update all learn.svelte.dev links and a couple of others (#13803) 2024-10-23 16:53:19 +02:00
.editorconfig chore: upgrade eslint to v9 (#11108) 2024-04-10 16:02:03 -07:00
.gitattributes
.gitignore chore: add pnpm bench:compare script (#12099) 2024-06-20 10:05:11 +01:00
.npmrc
.prettierignore chore: restructure docs for new site (#13699) 2024-10-21 08:57:07 -07:00
.prettierrc
CODE_OF_CONDUCT.md
CONTRIBUTING.md chore: update all learn.svelte.dev links and a couple of others (#13803) 2024-10-23 16:53:19 +02:00
eslint.config.js docs: fix typo 2024-09-29 09:23:38 -07:00
FUNDING.json Update Drips claim wallet address (#11444) 2024-05-03 07:13:37 -07:00
LICENSE.md
package.json chore: remove xml2js override (#14041) 2024-10-30 16:55:30 +01:00
pnpm-lock.yaml fix: bump is-reference dependency to fix import.meta bug (#14286) 2024-11-14 12:54:27 +01:00
pnpm-workspace.yaml
README.md chore: update all learn.svelte.dev links and a couple of others (#13803) 2024-10-23 16:53:19 +02:00
vitest.config.js chore: generate coverage report when deploying site (#11110) 2024-04-10 16:07:38 -04:00

Cybernetically enhanced web apps: Svelte

license Chat

What is Svelte?

Svelte is a new way to build web applications. It's a compiler that takes your declarative components and converts them into efficient JavaScript that surgically updates the DOM.

Learn more at the Svelte website, or stop by the Discord chatroom.

Supporting Svelte

Svelte is an MIT-licensed open source project with its ongoing development made possible entirely by fantastic volunteers. If you'd like to support their efforts, please consider:

Funds donated via Open Collective will be used for compensating expenses related to Svelte's development such as hosting costs. If sufficient donations are received, funds may also be used to support Svelte's development more directly.

Roadmap

You may view our roadmap if you'd like to see what we're currently working on.

Contributing

Please see the Contributing Guide and the svelte package for information on contributing to Svelte.

svelte.dev

The source code for https://svelte.dev lives in the sites folder, with all the documentation right here. The site is built with SvelteKit.

Is svelte.dev down?

Probably not, but it's possible. If you can't seem to access any .dev sites, check out this SuperUser question and answer.

License

MIT