Skip to content

Commit 71900f3

Browse files
authored
Allow optional HMR options in V3 (#896)
1 parent 2c4953e commit 71900f3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/ten-hotels-dance.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@atlaspack/rust': patch
3+
---
4+
5+
Allow optional HMR options in V3

crates/atlaspack_core/src/plugin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ pub struct PluginContext {
3838

3939
#[derive(Debug, Default, Deserialize, Serialize, Clone)]
4040
pub struct HmrOptions {
41-
pub port: u32,
42-
pub host: String,
41+
pub port: Option<u32>,
42+
pub host: Option<String>,
4343
}
4444

4545
#[derive(Default)]

0 commit comments

Comments
 (0)