Skip to content

the default export and sideEffects of virtual:uno.css?inline #2533

@lisonge

Description

@lisonge

UnoCSS version

0.51.5

Describe the bug

the module virtual:uno.css?inline still has sideEffects

image


when vite build, the default export of module virtual:uno.css?inline is ''

image

image


when vite serve, there is not hmr for virtual:uno.css?inline

It should behave the same way as vite inline css

Reproduction

https://stackblitz.com/edit/vitejs-vite-hcufny?file=src%2Fmain.tsx&terminal=dev

or

test-shadow-dom/vite.config.ts

System Info

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions