vendor: support native TypeScript source loading

This commit is contained in:
imccyu
2026-07-28 23:03:23 +08:00
parent eb38a365dc
commit 5ea161fa68
23 changed files with 77 additions and 72 deletions

View File

@@ -1,5 +1,5 @@
import { createRequire, LoadHookContext } from 'node:module'
import { Dict } from 'cosmokit'
import { createRequire, type LoadHookContext } from 'node:module'
import type { Dict } from 'cosmokit'
/** Node internal module format names handled by loader hooks. */
export type ModuleFormat = 'builtin' | 'commonjs' | 'json' | 'module' | 'wasm'