From 8820f75cc38c5cd47806bd1c118c4ed7e8d8bee6 Mon Sep 17 00:00:00 2001 From: Urata Daiki <7nohe@users.noreply.github.com> Date: Wed, 14 Dec 2022 14:43:26 +0900 Subject: [PATCH] fix: fix the error message in the `toOutputFilePathWithoutRuntime` function (#11367) --- packages/vite/src/node/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') {