mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
fix: error on invalid & unsupported jsx compiler options (#19954)
This commit is contained in:
parent
806137bb96
commit
02d6bbff2c
5 changed files with 88 additions and 18 deletions
|
@ -914,11 +914,11 @@ impl CliOptions {
|
|||
/// Return the JSX import source configuration.
|
||||
pub fn to_maybe_jsx_import_source_config(
|
||||
&self,
|
||||
) -> Option<JsxImportSourceConfig> {
|
||||
self
|
||||
.maybe_config_file
|
||||
.as_ref()
|
||||
.and_then(|c| c.to_maybe_jsx_import_source_config())
|
||||
) -> Result<Option<JsxImportSourceConfig>, AnyError> {
|
||||
match self.maybe_config_file.as_ref() {
|
||||
Some(config) => config.to_maybe_jsx_import_source_config(),
|
||||
None => Ok(None),
|
||||
}
|
||||
}
|
||||
|
||||
/// Return any imports that should be brought into the scope of the module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue