Skip to content

Support Vite 7.1 #39

@qeleb

Description

@qeleb

Problem

This plugin causes a crash during build on Vite 7.1.0

ERROR error during build:
[vite:css-post] [lightningcss minify] Invalid empty selector
…

It’s not related to lightningcss— it also crashes when using esbuild (default) to minify CSS.

Expected behavior

Build proceeds as normal as it did on Vite v7.0.x.

PS. I am not able to attach a minimal reproduction from work. I can however attach my boilerplate which is currently on Vite 7.0.6. You will find if you update Vite to 7.1.0 that it crashes (and will work again only by disabling vite-css-modules).

Minimal reproduction URL

https://github.com/qeleb/Solid-Boilerplate

Version

v1.9.2

Node.js version

v22

Package manager

yarn

Operating system

macOS

Bugs are expected to be fixed by those affected by it

  • I'm interested in working on this issue

Compensating engineering work financially will speed up resolution

  • I'm willing to offer financial support

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions