diff --git a/packages/vite/src/node/build.ts b/packages/vite/src/node/build.ts index 1e8a9d3739793a..8337f083aaa7a3 100644 --- a/packages/vite/src/node/build.ts +++ b/packages/vite/src/node/build.ts @@ -1130,7 +1130,7 @@ export function toOutputFilePathWithoutRuntime( if (typeof result === 'object') { if (result.runtime) { throw new Error( - `{ runtime: "${result.runtime} }" is not supported for assets in ${hostType} files: ${filename}`, + `{ runtime: "${result.runtime}" } is not supported for assets in ${hostType} files: ${filename}`, ) } if (typeof result.relative === 'boolean') {