Skip to content

Commit

Permalink
fix: fix the error message in the toOutputFilePathWithoutRuntime fu…
Browse files Browse the repository at this point in the history
…nction (#11367)
7nohe authored Dec 14, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 060cd66 commit 8820f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/build.ts
Original file line number Diff line number Diff line change
@@ -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') {

0 comments on commit 8820f75

Please sign in to comment.