diff --git a/crates/swc/tests/fixture/issues-4xxx/issue-4296/1/input/.swcrc b/crates/swc/tests/fixture/issues-4xxx/issue-4296/1/input/.swcrc new file mode 100644 index 00000000000..c69c5a2267e --- /dev/null +++ b/crates/swc/tests/fixture/issues-4xxx/issue-4296/1/input/.swcrc @@ -0,0 +1,14 @@ +{ + "jsc": { + "transform": { + "hidden": { + "jest": true + } + }, + "target": "es2022", + "parser": { + "syntax": "typescript", + "tsx": true + } + } +} \ No newline at end of file diff --git a/crates/swc/tests/fixture/issues-4xxx/issue-4296/1/input/index.tsx b/crates/swc/tests/fixture/issues-4xxx/issue-4296/1/input/index.tsx new file mode 100644 index 00000000000..c98cb113271 --- /dev/null +++ b/crates/swc/tests/fixture/issues-4xxx/issue-4296/1/input/index.tsx @@ -0,0 +1,29 @@ +import React from "react"; + +interface ListProps { + callback: () => void; +} + +const SomeList = ({ callback }: ListProps) => { + callback(); + + return
; +}; + +const list = [0]; + +const MyComponent = (): JSX.Element => { + return ( +