-
-
Notifications
You must be signed in to change notification settings - Fork 930
Labels
C-enhancementCategory - New feature or requestCategory - New feature or request
Description
Currently OXC outputs this for sourcemap types:
export interface SourceMap {
file?: string
mappings?: string
sourceRoot?: string
sources?: Array<string | undefined | null>
sourcesContent?: Array<string | undefined | null>
names?: Array<string>
}Looking at the code, I think this more because the input type is reused as the output type
Currently Rollup/Vite requires this as a source map input:
export interface ExistingRawSourceMap {
file?: string;
mappings: string;
names: string[];
sourceRoot?: string;
sources: string[];
sourcesContent?: string[];
version: number;
x_google_ignoreList?: number[];
}Having this be compatible will make it easier to write a transform plugin for Rollup/Vite that uses OXC
Note the required version: number; which can probably be hardcoded to 3 when serializing.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-enhancementCategory - New feature or requestCategory - New feature or request
Type
Fields
Give feedbackPriority
None yet