Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jan 9, 2024
1 parent 4becf0e commit 6f96373
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/moduleGraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export class ModuleGraph {
importer.lastInvalidationTimestamp === timestamp
) {
seen.add(importer)
this.getSSRInvalidatedImporters(importer, timestamp, seen)
return this.getSSRInvalidatedImporters(importer, timestamp, seen)
}
})
return seen
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/ssr/runtime/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class ViteRuntime {
options.hmr,
({ acceptedPath, ssrInvalidates }) => {
this.moduleCache.delete(acceptedPath)
ssrInvalidates?.forEach((id) => this.moduleCache.delete(id))
ssrInvalidates.forEach((id) => this.moduleCache.delete(id))
return this.executeId(acceptedPath, false)
},
)
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/types/hmrPayload.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface Update {
/** @internal */
isWithinCircularImport: boolean
/** @internal */
ssrInvalidates?: string[]
ssrInvalidates: string[]
}

export interface PrunePayload {
Expand Down

0 comments on commit 6f96373

Please sign in to comment.