File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
examples/basic/src/routes/hmr-shared/atomic Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ export function TestClient({
9
9
testSharedFromServer : string
10
10
} ) {
11
11
React . useEffect ( ( ) => {
12
- console . log ( { testShared, testSharedFromServer } )
13
12
if ( testShared !== testSharedFromServer ) {
13
+ console . log ( { testShared, testSharedFromServer } )
14
14
throw new Error (
15
15
`Mismatch: ${ JSON . stringify ( { testShared, testSharedFromServer } ) } ` ,
16
16
)
Original file line number Diff line number Diff line change @@ -1521,15 +1521,15 @@ function mergeAssetDeps(a: AssetDeps, b: AssetDeps): AssetDeps {
1521
1521
}
1522
1522
1523
1523
function collectAssetDeps ( bundle : Rollup . OutputBundle ) {
1524
- const chunkToDeps = new Map < Rollup . OutputChunk , AssetDeps > ( )
1524
+ const chunkToDeps = new Map < Rollup . OutputChunk , ResolvedAssetDeps > ( )
1525
1525
for ( const chunk of Object . values ( bundle ) ) {
1526
1526
if ( chunk . type === 'chunk' ) {
1527
1527
chunkToDeps . set ( chunk , collectAssetDepsInner ( chunk . fileName , bundle ) )
1528
1528
}
1529
1529
}
1530
1530
const idToDeps : Record <
1531
1531
string ,
1532
- { chunk : Rollup . OutputChunk ; deps : AssetDeps }
1532
+ { chunk : Rollup . OutputChunk ; deps : ResolvedAssetDeps }
1533
1533
> = { }
1534
1534
for ( const [ chunk , deps ] of chunkToDeps . entries ( ) ) {
1535
1535
for ( const id of chunk . moduleIds ) {
@@ -1542,7 +1542,7 @@ function collectAssetDeps(bundle: Rollup.OutputBundle) {
1542
1542
function collectAssetDepsInner (
1543
1543
fileName : string ,
1544
1544
bundle : Rollup . OutputBundle ,
1545
- ) : AssetDeps {
1545
+ ) : ResolvedAssetDeps {
1546
1546
const visited = new Set < string > ( )
1547
1547
const css : string [ ] = [ ]
1548
1548
You can’t perform that action at this time.
0 commit comments