Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/vite/src/node/__tests__/plugins/hooks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ describe('plugin hook errors', () => {
await expect(run(plugin)).rejects.toMatchObject({
plugin: 'throws',
hook,
message: expect.stringContaining('[throws] missing apiKey'),
message: 'missing apiKey',
})
})
}
Expand All @@ -739,7 +739,7 @@ describe('plugin hook errors', () => {
type: 'error',
err: {
plugin: 'throws',
message: expect.stringContaining('[throws] missing apiKey'),
message: 'missing apiKey',
},
})
})
Expand Down
3 changes: 1 addition & 2 deletions packages/vite/src/node/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
viteJsonPlugin as nativeJsonPlugin,
oxcRuntimePlugin,
} from 'rolldown/experimental'
import { enhanceRollupError, resolveBuildPlugins } from '../build'
import { resolveBuildPlugins } from '../build'
import type { PluginHookUtils, ResolvedConfig } from '../config'
import { watchPackageDataPlugin } from '../packages'
import {
Expand Down Expand Up @@ -249,7 +249,6 @@ function tagPluginError(e: unknown, plugin: string, hook: string): void {
if (err.plugin) return
err.plugin = plugin
err.hook = hook
enhanceRollupError(err)
}

type FilterForPluginValue = {
Expand Down
Loading