Skip to content

Commit 139d016

Browse files
committed
fix: correct "Unexpected IIFE format" shown for UMD output
1 parent fa87556 commit 139d016

File tree

1 file changed

+1
-1
lines changed
  • packages/vite/src/node/plugins

1 file changed

+1
-1
lines changed

packages/vite/src/node/plugins/oxc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ export const buildOxcPlugin = (): Plugin => {
488488
opts.format === 'iife' ? IIFE_BEGIN_RE : UMD_BEGIN_RE
489489
).exec(res.code)
490490
if (!m) {
491-
this.error('Unexpected IIFE format')
491+
this.error(`Unexpected ${opts.format.toUpperCase()} format`)
492492
return
493493
}
494494
const pos = m.index + m[0].length

0 commit comments

Comments
 (0)