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

Errors are missing plugin field #600

@benmccann

Description

@benmccann

Describe the regression

See this simple test: https://github.com/JonasKruckenberg/imagetools/blob/74df03b9a38b15279dd5a0aac05b1f41a941d545/packages/vite/src/__tests__/main.test.ts#L304

  FAIL  src/__tests__/main.test.ts > vite-imagetools > options > logging > logs error messages through rollup
│ AssertionError: expected undefined to deeply equal 'imagetools'
│ - Expected: 
│ "imagetools"
│ + Received: 
│ undefined
│  ❯ src/__tests__/main.test.ts:304:28
│     302|         } catch (err: unknown) {
│     303|           const e = err as { plugin: string; message: string }
│     304|           expect(e.plugin).toEqual('imagetools')
│        |                            ^
│     305|           expect(e.message).toContain('An error')
│     306|         }
│

Reproduction

https://github.com/JonasKruckenberg/imagetools

Expected Behavior

The error's plugin field should contain the name of the plugin

Actual Behavior

The error's plugin field is undefined

Steps to Reproduce

git clone git@github.com:JonasKruckenberg/imagetools.git
cd imagetools
pnpm install
pnpm -r update vite@8.0.0-beta.15
pnpm build
pnpm test

System Info

vite@8.0.0-beta.15

Used Package Manager

pnpm

Logs

No response

Validations

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions