-
-
Notifications
You must be signed in to change notification settings - Fork 880
Closed
Labels
C-enhancementCategory - New feature or requestCategory - New feature or requestgood first issueExperience Level - Good for newcomersExperience Level - Good for newcomers
Description
https://www.typescriptlang.org/tsconfig/#declarationMap
Generates a source map for .d.ts files which map back to the original .ts source file. This will allow editors such as VS Code to go to the original .ts file when using features like Go to Definition.
You should strongly consider turning this on if you’re using project references.
For the JavaScript API, oxc.transform supports a boolean sourcemap option, so it might make sense to do something similar for oxc.isolatedDeclaration
import oxc from 'oxc-transform';
const { sourceText, errors, sourceMap } = oxc.isolatedDeclaration(
"test.ts",
"class A {}",
{sourcemap: true},
);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-enhancementCategory - New feature or requestCategory - New feature or requestgood first issueExperience Level - Good for newcomersExperience Level - Good for newcomers