Skip to content

Commit 7883fe2

Browse files
authored
Rewatch: JSX 3 is unsupported (#7659)
1 parent caf4154 commit 7883fe2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rewatch/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,10 @@ impl Config {
364364
pub fn get_jsx_args(&self) -> Vec<String> {
365365
match self.jsx.to_owned() {
366366
Some(jsx) => match jsx.version {
367-
Some(version) if version == 3 || version == 4 => {
367+
Some(version) if version == 4 => {
368368
vec!["-bs-jsx".to_string(), version.to_string()]
369369
}
370-
Some(_version) => panic!("Unsupported JSX version"),
370+
Some(version) => panic!("JSX version {} is unsupported", version),
371371
None => vec![],
372372
},
373373
None => vec![],

0 commit comments

Comments
 (0)