File tree Expand file tree Collapse file tree
packages/rsc/examples/basic Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ export default { fetch: handler };
178178 const vendorChunks : Rollup . OutputChunk [ ] = [ ] ;
179179 for ( const chunk of Object . values ( bundle ) ) {
180180 if ( chunk . type === "chunk" ) {
181- if ( chunk . facadeModuleId === "\0virtual:vite-rsc/entry-browser " ) {
181+ if ( chunk . name === "index " ) {
182182 entryChunks . push ( chunk ) ;
183183 } else if ( chunk . name === "lib-react" ) {
184184 vendorChunks . push ( chunk ) ;
@@ -187,7 +187,7 @@ export default { fetch: handler };
187187 }
188188
189189 // react vendor chunk has no import
190- assert ( vendorChunks . length === 1 ) ;
190+ assert . equal ( vendorChunks . length , 1 ) ;
191191 assert . deepEqual (
192192 vendorChunks [ 0 ] . imports . filter (
193193 ( f ) => ! f . includes ( "rolldown-runtime" ) ,
@@ -197,7 +197,7 @@ export default { fetch: handler };
197197 assert . deepEqual ( vendorChunks [ 0 ] . dynamicImports , [ ] ) ;
198198
199199 // entry chunk has no export
200- assert ( entryChunks . length === 1 ) ;
200+ assert . equal ( entryChunks . length , 1 ) ;
201201 assert . deepEqual ( entryChunks [ 0 ] . exports , [ ] ) ;
202202 }
203203 } ,
You can’t perform that action at this time.
0 commit comments