vendor: support native TypeScript source loading
This commit is contained in:
4
vendor/loader/src/internal.ts
vendored
4
vendor/loader/src/internal.ts
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user