denoland / denoland/deno_graph
MediaType enum is not reflecting the graph output
Open
- Dominant language
- Rust
- Stars
- 137
- Forks
- 47
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
Source Tree:
```txt
├── component.tsx
└── main.ts
```
`component.tsx`:
```tsx
export default () =>
;
```
```
`main.ts`:
```ts
import { createGraph, MediaType } from "jsr:@deno/graph";
const graph = await createGraph([import.meta.resolve("./component.tsx")]);
console.log(graph.modules.at(0)?.mediaType, MediaType.Tsx);
// TSX Tsx <---- NOT THE SAME
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.