Skip to content

Svelte-scoped building broken in Vite 8 #5158

@henrikvilhelmberglund

Description

@henrikvilhelmberglund

UnoCSS version

66.6.7

Describe the bug

Seems like something happened to setAssetSource() that was added with #5133 . Not too sure why, probably an upstream bug, but creating an issue here so I remember it.

Reproduction

https://github.com/henrikvilhelmberglund/unocss-repro-safelist-5154

Change
"vite": "^7.0.0"
to
"vite": "^8.0.0"

  1. nr build
  2. Error
    Expected: no error

System Info

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions