0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-22 03:47:27 +01:00
Cybernetically enhanced web apps https://svelte.dev/
Go to file
Simon H 45fa678242
fix: account for :has(...) as part of :root (#14229)
We previously marked all `:root` selectors as global-like, which excempted them from further analysis. This causes problems:
- things like `:not(...)` are never visited and therefore never marked as used -> we gotta do that directly when coming across this
- `:has(...)` was never visited, too. Just marking it as used is not enough though, because we might need to scope its contents

Therefore the logic is enhanced to account for these special cases. Fixes #14118

While fixing this I cleaned up some inconsistencies in what we mark as global. This simplified code and fixed some adjacent bugs, which conindicentally also fixes #14189
2024-11-14 11:24:02 +01:00
.changeset fix: account for :has(...) as part of :root (#14229) 2024-11-14 11:24:02 +01:00
.github fix: find the right sha for logging (#14159) 2024-11-05 17:05:21 +01:00
.vscode
benchmarking
documentation docs: fix typo (#14232) 2024-11-10 05:31:50 -08:00
packages/svelte fix: account for :has(...) as part of :root (#14229) 2024-11-14 11:24:02 +01:00
playgrounds/sandbox
sites/svelte-5-preview
.editorconfig
.gitattributes
.gitignore
.npmrc
.prettierignore
.prettierrc
CODE_OF_CONDUCT.md
CONTRIBUTING.md
eslint.config.js
FUNDING.json
LICENSE.md
package.json
pnpm-lock.yaml
pnpm-workspace.yaml
README.md
vitest.config.js

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