css-analyzer
css-analyzer copied to clipboard
report nested @layers
The analysis currently only provide the unique @layer names, not any variations of nesting.
@layer default {
@layer reset, theme;
}
Would 'unfold' into these
{
'default': 1,
'default.reset': 1,
'default.theme': 1,
}
WIP https://stackblitz.com/edit/node-tu6uus?file=index.js
Looks like I've got a working version now: https://svelte.dev/repl/f07df19707b5475cad102f4861262f60?version=4.2.0
And published on projectwallace.com