From 95d2e4562bdadb458ce504e74805a77d6a33ba93 Mon Sep 17 00:00:00 2001 From: Wang Zhi Date: Thu, 25 Aug 2022 23:58:01 +0800 Subject: [PATCH] fix(types): align source map with rollup (#161) --- src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index c9c617fc..12d7ef36 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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' @@ -13,7 +13,7 @@ export { export type Thenable = T | Promise -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 }