Skip to content

Commit 69db2ee

Browse files
committed
fix: add assertion error message
1 parent d1e1a0f commit 69db2ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/plugin-rsc/src/plugin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,13 +869,12 @@ function getEntrySource(
869869
name: string = 'index',
870870
) {
871871
const input = config.build.rollupOptions.input
872-
assert(input)
873872
assert(
874873
typeof input === 'object' &&
875874
!Array.isArray(input) &&
876875
name in input &&
877876
typeof input[name] === 'string',
878-
`[vite-rsc] expected 'build.rollupOptions.input' to be an object with a '${name}' property that is a string, but got ${JSON.stringify(input)}`,
877+
`[vite-rsc:getEntrySource] expected 'build.rollupOptions.input' to be an object with a '${name}' property that is a string, but got ${JSON.stringify(input)}`,
879878
)
880879
return input[name]
881880
}

0 commit comments

Comments
 (0)