Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
2867cc1
WIP
Rich-Harris Nov 25, 2024
b84ed1e
Merge branch 'main' into better-pruning
Rich-Harris Nov 25, 2024
33026a7
link snippets to render tags and vice versa
Rich-Harris Nov 25, 2024
fdce504
WIP
Rich-Harris Nov 25, 2024
bc46771
Merge branch 'main' into better-pruning
Rich-Harris Nov 25, 2024
af7ebb0
tidy up
Rich-Harris Nov 26, 2024
22d56e8
tidy up
Rich-Harris Nov 26, 2024
e3b6e21
merge main
Rich-Harris Nov 27, 2024
344c132
update test
Rich-Harris Nov 27, 2024
1dd8772
more accurate pruning
Rich-Harris Nov 27, 2024
7b6aae1
failing test
Rich-Harris Nov 27, 2024
3707cbb
sibling stuff
Rich-Harris Nov 27, 2024
7e38ae6
merge main
Rich-Harris Nov 27, 2024
947e763
add test
Rich-Harris Nov 27, 2024
7520988
add failing test
Rich-Harris Nov 27, 2024
0dad618
another failing test
Rich-Harris Nov 27, 2024
bef6c15
more tests
Rich-Harris Nov 27, 2024
3d961f5
fix some stuff
Rich-Harris Nov 27, 2024
21fff48
skip test for now
Rich-Harris Nov 27, 2024
c7273b3
changeset
Rich-Harris Nov 27, 2024
d1d99d2
check
Rich-Harris Nov 27, 2024
9fb9881
use existing helpers
Rich-Harris Nov 27, 2024
e43baca
better comments
Rich-Harris Nov 27, 2024
300c15d
Update packages/svelte/src/compiler/phases/2-analyze/visitors/RenderT…
Rich-Harris Nov 27, 2024
a22f9d5
DRY out
Rich-Harris Nov 27, 2024
d907155
this appears to be unnecessary
Rich-Harris Nov 27, 2024
122d824
no need to pass state around
Rich-Harris Nov 27, 2024
fefc4e9
fix and simplify
Rich-Harris Nov 27, 2024
301c402
move code to where it is used
Rich-Harris Nov 27, 2024
16f28a1
this bit is nonsensical, parent cannot exist if there was no combinator
Rich-Harris Nov 27, 2024
bb5c311
simplify
Rich-Harris Nov 27, 2024
95418a6
simplify
Rich-Harris Nov 27, 2024
2a16fca
bit more
Rich-Harris Nov 27, 2024
8e3a529
simplify
Rich-Harris Nov 28, 2024
01ea8c2
handle `:has`
dummdidumm Nov 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/twelve-squids-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: better account for render tags when pruning CSS
8 changes: 6 additions & 2 deletions packages/svelte/src/compiler/phases/1-parse/state/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,10 @@ function open(parser) {
name
},
parameters: function_expression.params,
body: create_fragment()
body: create_fragment(),
metadata: {
sites: new Set()
}
});
parser.stack.push(block);
parser.fragments.push(block.body);
Expand Down Expand Up @@ -605,7 +608,8 @@ function special(parser) {
metadata: {
dynamic: false,
args_with_call_expression: new Set(),
path: []
path: [],
snippets: new Set()
}
});
}
Expand Down
Loading