lxsmnsyc / solid-styled

Reactive stylesheets for SolidJS
MIT License
173 stars 10 forks source link

@global is broken #18

Closed alekangelov closed 8 months ago

alekangelov commented 1 year ago

Hello,

the @global rule seems to be broken

it's wrapping the styles in an "@global {...}"

function App() {
    css`
        @global { body { background: white } }
    `
    return <main />
}

should compile to

body { background: white }

but instead it compiles to

@global { body { background: white } }

downgrading to 0.8.2 fixed the issue. maybe due to moving away from postcss?

lxsmnsyc commented 1 year ago

hmmm, I thought this is covered. I'll take a look again

lxsmnsyc commented 1 year ago

Seems like a bug with LightningCSS not calling exit visitors. I'll wait til this is addressed