We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
version: number;
The text was updated successfully, but these errors were encountered:
feat(napi/transform): align output SourceMap with Rollup's `Existin…
SourceMap
65389f2
…gRawSourceMap` closes #5578
ExistingRawSourceMap
e698418
…gRawSourceMap` (#5657) closes #5578
Boshen
Successfully merging a pull request may close this issue.
Currently OXC outputs this for sourcemap types:
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:
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.The text was updated successfully, but these errors were encountered: