Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/rolldown-plugin-dts. A Rolldown plugin to generate and bundle dts files.
Something went wrong. Try again.
123456789101112131415161718import { createDebug } from 'obug'import { tscEmitBuild } from './emit-build.ts'import { tscEmitCompiler } from './emit-compiler.ts'import type { TscOptions, TscResult } from './types.ts'export type { TscModule, TscOptions, TscResult } from './types.ts'
const debug = createDebug('rolldown-plugin-dts:tsc')
export function tscEmit(tscOptions: TscOptions): TscResult { debug(`running tscEmit ${tscOptions.id}`)
if (tscOptions.build) { return tscEmitBuild(tscOptions) } else { return tscEmitCompiler(tscOptions) }}