denoland / denoland/deno_graph

MediaType enum is not reflecting the graph output

Open
#596 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.