Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

experimental.enableNativePlugin causes css key to disappear from Vite manifest #320

@teemingc

Description

@teemingc

Describe the regression

The Vite build manifest normally includes which CSS a file uses. However, enabling experimental.enableNativePlugin causes this to no longer appear.

SvelteKit uses these CSS keys to map the CSS files between our server and client bundles so that we can choose to inline the server CSS instead of loading the client CSS. It's important to inline the server CSS and not the client CSS because it uses the correct path format for an inline style block when referencing other files.

Reproduction

https://github.com/eltigerchino/rolldown-vite-native-plugins-vite-manifest-css

Expected Behavior

I expected the css key to exist for entries in the Vite manifest.

Actual Behavior

The css key is missing from the Vite manifest.

Steps to Reproduce

  1. Run pnpm i to install dependencies
  2. Run pnpm build to generate the Vite manifest
  3. Inspect the generated Vite manifest in ./dist/vite/manifest.json
  4. Observe that the index.html file's css key specifies the CSS files it uses.
  5. Now, install rolldown-vite by adding the below to the ./package.json
  "pnpm": {
    "overrides": {
      "vite": "npm:rolldown-vite@latest"
    }
  }
  1. Run pnpm i to install rolldown-vite
  2. Run pnpm build to generate the Vite manifest
  3. Observe that the index.html entry no longer has a css key.

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (8) x64 AMD Ryzen 7 5800H with Radeon Graphics
    Memory: 11.27 GB / 15.62 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Binaries:
    Node: 20.19.3 - ~/.volta/tools/image/node/20.19.3/bin/node
    npm: 10.8.2 - ~/.volta/tools/image/node/20.19.3/bin/npm
    pnpm: 10.12.4 - ~/.volta/tools/image/pnpm/10.12.4/bin/pnpm
    bun: 1.2.15 - ~/.bun/bin/bun
  Browsers:
    Chrome: 138.0.7204.100
  npmPackages:
    vite: ^7.0.3 => 7.0.3

Used Package Manager

pnpm

Logs

No response

Validations

Metadata

Metadata

Assignees

Labels

feat: native pluginsrelated to exprimental.enableNativePlugins

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions