Skip to content

Commit 8820f75

Browse files
authoredDec 14, 2022
fix: fix the error message in the toOutputFilePathWithoutRuntime function (#11367)
1 parent 060cd66 commit 8820f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/vite/src/node/build.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ export function toOutputFilePathWithoutRuntime(
11301130
if (typeof result === 'object') {
11311131
if (result.runtime) {
11321132
throw new Error(
1133-
`{ runtime: "${result.runtime} }" is not supported for assets in ${hostType} files: ${filename}`,
1133+
`{ runtime: "${result.runtime}" } is not supported for assets in ${hostType} files: ${filename}`,
11341134
)
11351135
}
11361136
if (typeof result.relative === 'boolean') {

0 commit comments

Comments
 (0)
Please sign in to comment.