Skip to content

@cloudflare/vite-plugin 1.6.0 generate incorrect manifest.json #9606

Closed
@elct9620

Description

@elct9620

What versions & operating system are you using?

Wrangler 4.20.0

Please provide a link to a minimal reproduction

No response

Describe the Bug

When upgrading the plugin from 1.5.1 to 1.6.0, the generated manifest.json is changed.

In the 1.5.1 cases:

dist/
  |- worker/
        |- index.js
  |- client
       |- .vite/
             |- manifest.json

In the 1.6.0 cases:

dist/
  |- worker/
        |- .vite/
             |- manifest.json
        |- index.js
  |- client
       |- .vite/
             |- manifest.json

We have manifest.json in the worker, too.

However, the manifest is different. I have a src/style.css that should be included.

  • worker/.vite/manifest.json - no src/style.css entry
  • client/.vite/manifest.json - have src/style.css entry

It causes the SSR to return a correct CSS path that results in a 500 error or <style> on the client side.

The SSR plugin is https://github.com/yusukebe/vite-ssr-components

Please provide any relevant error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting reporter responseNeeds clarification or followup from OPbugSomething that isn't workingneeds reproductionNeeds reproduction from OPvite-pluginRelating to the `@cloudflare/vite-plugin` package

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions