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
Used Package Manager
pnpm
Logs
No response
Validations
Describe the regression
See this simple test: https://github.com/JonasKruckenberg/imagetools/blob/74df03b9a38b15279dd5a0aac05b1f41a941d545/packages/vite/src/__tests__/main.test.ts#L304
Reproduction
https://github.com/JonasKruckenberg/imagetools
Expected Behavior
The error's
pluginfield should contain the name of the pluginActual Behavior
The error's
pluginfield is undefinedSteps to Reproduce
System Info
Used Package Manager
pnpm
Logs
No response
Validations