Skip to content

CI fails because Vite 8.4.0 does not create empty CSS files #370

Description

@psmyrek

Problem

Since 2026-11-27, CI fails in the package_js_npm and package_ts_npm_custom_name jobs without any change in this repository.

scripts/ci/verify-build.js generates a package, runs npm publish --dry-run and compares the file list with scripts/ci/utils/expectedFiles.js. The browser build no longer creates dist/browser/index.css:

Files missing from publish:
- dist/browser/index.css

Steps to reproduce

pnpm install
node scripts/ci/verify-build.js -l js -p npm -g GLOBAL_NAME

Cause

Vite 8.4.0 (released on 2026-11-26) no longer writes empty CSS files: vitejs/vite#24059. The template stylesheet theme/styles/index.css contains only a comment. The browser build is minified, so its CSS is empty and Vite skips the file. The npm build is not minified, so dist/index.css keeps the comment and is still created.

Nothing in a generated package refers to dist/browser/index.css. A plugin with real styles still gets this file.

The pnpm jobs still pass only because pnpm does not install versions younger than one day by default (minimumReleaseAge). From 2026-11-27 11:00 UTC they get Vite 8.4.0 and fail the same way.

Fix

Remove dist/browser/index.css from the expected files in scripts/ci/utils/expectedFiles.js.

Activity

  1. added
    squad:platform
    type:bug
    on Nov 27, 2026
  2. self-assigned this
    on Nov 27, 2026
  3. added
    status:in-progress
    on Nov 27, 2026
  4. added theissue type on Nov 27, 2026
  5. removed
    status:in-progress
    on Nov 27, 2026
  6. added this to the iteration 106 milestone on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

squad:platformtype:bug

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions