Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Oct 24, 2023
1 parent e46bfc2 commit 4c59143
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/transpiling/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1121,10 +1121,12 @@ for (let i = 0; i < testVariable >> 1; i++) callCount++;
scope_analysis: false,
})
.unwrap();
let mut options = EmitOptions::default();
options.transform_jsx = false;
options.precompile_jsx = true;
options.jsx_import_source = Some("react".to_string());
let mut options = EmitOptions {
transform_jsx: false,
precompile_jsx: true,
jsx_import_source: Some("react".to_string()),
..Default::default()
};
let code = module.transpile(&options).unwrap().text;
let expected1 = r#"import { jsx as _jsx, jsxssr as _jsxssr } from "react/jsx-runtime";
const $$_tpl_1 = [
Expand Down

0 comments on commit 4c59143

Please sign in to comment.