diff --git a/fixtures/package.json b/fixtures/package.json
new file mode 100644
index 0000000..3dbc1ca
--- /dev/null
+++ b/fixtures/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "module"
+}
diff --git a/fixtures/react.tsx b/fixtures/react.tsx
index e1b9a89..8979d0b 100644
--- a/fixtures/react.tsx
+++ b/fixtures/react.tsx
@@ -1,5 +1,7 @@
import {useState} from 'react'
+import {double} from './utils'
+
interface FooProps {
num: number
str: string
@@ -11,7 +13,7 @@ export default function Foo(props: FooProps): JSX.Element {
return (
{count}
- {num}
+ {double(num)}
{str}
)
diff --git a/fixtures/utils.ts b/fixtures/utils.ts
new file mode 100644
index 0000000..689661c
--- /dev/null
+++ b/fixtures/utils.ts
@@ -0,0 +1,3 @@
+export function double(n: number): number {
+ return n * 2
+}
diff --git a/tsconfig.json b/tsconfig.json
index 1531286..0951b96 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -5,8 +5,8 @@
"incremental": true,
"isolatedModules": true,
"jsx": "react-jsx",
- "module": "node16",
- "moduleResolution": "node16",
+ "module": "ES2022",
+ "moduleResolution": "bundler",
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"strict": true,