Skip to content

Commit ad46448

Browse files
committed
chore: getCombinedSourcemap is now supported
1 parent 95bce64 commit ad46448

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

packages/vite/src/node/plugin.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import type {
88
Plugin as RollupPlugin,
99
PluginContext as RollupPluginContext,
1010
TransformPluginContext as RollupTransformPluginContext,
11-
SourceMap,
1211
TransformResult,
1312
} from 'rolldown'
1413
import type {
@@ -62,11 +61,6 @@ export interface PluginContextExtension {
6261
environment: Environment
6362
}
6463

65-
export interface TransformPluginContextExtension {
66-
// TODO: rolldown does not support this yet: https://github.com/rolldown/rolldown/pull/1121, https://github.com/rolldown/rolldown/pull/1426
67-
getCombinedSourcemap: () => SourceMap
68-
}
69-
7064
export interface HotUpdatePluginContext {
7165
environment: DevEnvironment
7266
}
@@ -85,14 +79,11 @@ export interface ResolveIdPluginContext
8579

8680
export interface TransformPluginContext
8781
extends RollupTransformPluginContext,
88-
PluginContextExtension,
89-
TransformPluginContextExtension {}
82+
PluginContextExtension {}
9083

9184
// Argument Rollup types to have the PluginContextExtension
9285
declare module 'rolldown' {
9386
export interface MinimalPluginContext extends PluginContextExtension {}
94-
export interface TransformPluginContext
95-
extends TransformPluginContextExtension {}
9687
}
9788

9889
/**

0 commit comments

Comments
 (0)