Skip to content

Commit

Permalink
fix(types): align source map with rollup (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
yfwz100 authored Aug 25, 2022
1 parent 6d36eef commit 95d2e45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AcornNode, EmittedAsset, Plugin as RollupPlugin, PluginContextMeta as RollupContextMeta, SourceMap } from 'rollup'
import type { AcornNode, EmittedAsset, Plugin as RollupPlugin, PluginContextMeta as RollupContextMeta, SourceMapInput } from 'rollup'
import type { Compiler as WebpackCompiler, WebpackPluginInstance } from 'webpack'
import type { Plugin as VitePlugin } from 'vite'
import type { Plugin as EsbuildPlugin } from 'esbuild'
Expand All @@ -13,7 +13,7 @@ export {

export type Thenable<T> = T | Promise<T>

export type TransformResult = string | { code: string; map?: SourceMap | null; } | null | undefined
export type TransformResult = string | { code: string; map?: SourceMapInput | null; } | null | undefined

export type ExternalIdResult = { id: string, external?: boolean }

Expand Down

0 comments on commit 95d2e45

Please sign in to comment.