Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implements HMR for CSS chunks and paves the way for accepting HMR updates for the HTML entry point as well.
  • Loading branch information
alexkirsz authored Sep 3, 2022
1 parent 94df61c commit 2b6f15b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/next-core/src/web_entry_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ pub async fn create_web_entry_source(
.try_join()
.await?;

let entry_asset = DevHtmlAsset {
path: FileSystemPathVc::new(dev_server_fs, "index.html"),
chunk_groups: chunks.into_iter().map(ChunkGroupVc::from_chunk).collect(),
}
let entry_asset = DevHtmlAsset::new(
FileSystemPathVc::new(dev_server_fs, "index.html"),
chunks.into_iter().map(ChunkGroupVc::from_chunk).collect(),
)
.cell()
.into();

Expand Down

0 comments on commit 2b6f15b

Please sign in to comment.