(id: string)
| 199 | type Lang = "js" | "jsx" | "ts" | "tsx" |
| 200 | |
| 201 | export const langOf = (id: string): Lang => |
| 202 | /\.[cm]?tsx$/.test(id) ? "tsx" |
| 203 | : /\.[cm]?ts$/.test(id) ? "ts" |
| 204 | : /\.jsx$/.test(id) ? "jsx" |
| 205 | : "js" |
| 206 | |
| 207 | const islandMarker = "@ark-runtime" |
| 208 |
no test coverage detected