Skip to content

Commit

Permalink
chore: update precompile JSX option
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Oct 31, 2023
1 parent 0757fd3 commit 9e7b899
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -912,9 +912,8 @@ impl ConfigFile {
return Ok(None);
}
Some("precompile") => "jsx-runtime".to_string(),
Some("precompile-dev") => "jsx-dev-runtime".to_string(),
Some(setting) => bail!(
"Unsupported 'jsx' compiler option value '{}'. Supported: 'react-jsx', 'react-jsxdev', 'react', 'precompile', 'precompile-jsx'\n at {}",
"Unsupported 'jsx' compiler option value '{}'. Supported: 'react-jsx', 'react-jsxdev', 'react', 'precompile'\n at {}",
setting,
self.specifier,
),
Expand Down Expand Up @@ -1438,7 +1437,7 @@ mod tests {
assert_eq!(
config.to_maybe_jsx_import_source_config().err().unwrap().to_string(),
concat!(
"Unsupported 'jsx' compiler option value 'preserve'. Supported: 'react-jsx', 'react-jsxdev', 'react'\n",
"Unsupported 'jsx' compiler option value 'preserve'. Supported: 'react-jsx', 'react-jsxdev', 'react', 'precompile'\n",
" at file:///deno/tsconfig.json",
),
);
Expand Down

0 comments on commit 9e7b899

Please sign in to comment.