From 4f346e332597fd3137d87f3a1952bd3291659ee7 Mon Sep 17 00:00:00 2001 From: Daiki Urata <7nohe.urata@gmail.com> Date: Wed, 14 Dec 2022 11:57:44 +0900 Subject: [PATCH] fix: fix the error message of unsupported runtime --- 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') {