File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
packages/plugin-rsc/examples/basic Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -107,10 +107,20 @@ export default defineConfig({
107107 'src/routes/browser-only/browser-dep.tsx' ,
108108 )
109109 if ( this . environment . name === 'client' ) {
110- assert ( moduleIds . includes ( browserId ) )
110+ assert (
111+ moduleIds . includes ( browserId ) ,
112+ `Expected browser-only module '${ browserId } ' be included in client build, but got: ${ moduleIds . join (
113+ ', ' ,
114+ ) } `,
115+ )
111116 }
112117 if ( this . environment . name === 'ssr' ) {
113- assert ( ! moduleIds . includes ( browserId ) )
118+ assert (
119+ ! moduleIds . includes ( browserId ) ,
120+ `Expected browser-only module '${ browserId } ' be included in client build, but got: ${ moduleIds . join (
121+ ', ' ,
122+ ) } `,
123+ )
114124 }
115125 } ,
116126 } ,
You can’t perform that action at this time.
0 commit comments