mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-10 18:04:18 -05:00
Set declarationMap to false in transpileModule. (#59642)
This commit is contained in:
committed by
GitHub
parent
ca64946dff
commit
52395892e0
@@ -149,6 +149,7 @@ function transpileWorker(input: string, transpileOptions: TranspileOptions, decl
|
||||
}
|
||||
else {
|
||||
options.declaration = false;
|
||||
options.declarationMap = false;
|
||||
}
|
||||
|
||||
const newLine = getNewLineCharacter(options);
|
||||
|
||||
@@ -294,6 +294,11 @@ var x = 0;`,
|
||||
testVerbatimModuleSyntax: true,
|
||||
});
|
||||
|
||||
transpilesCorrectly("Supports setting 'declarationMap'", "x;", {
|
||||
options: { compilerOptions: { declarationMap: true }, fileName: "input.js", reportDiagnostics: true },
|
||||
testVerbatimModuleSyntax: true,
|
||||
});
|
||||
|
||||
transpilesCorrectly("Supports setting 'declarationDir'", "x;", {
|
||||
options: { compilerOptions: { declarationDir: "out/declarations" }, fileName: "input.js", reportDiagnostics: true },
|
||||
testVerbatimModuleSyntax: true,
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
x;
|
||||
//# sourceMappingURL=input.js.map
|
||||
@@ -0,0 +1,2 @@
|
||||
x;
|
||||
//# sourceMappingURL=input.js.map
|
||||
@@ -0,0 +1,2 @@
|
||||
x;
|
||||
//# sourceMappingURL=input.js.map
|
||||
@@ -0,0 +1,2 @@
|
||||
x;
|
||||
//# sourceMappingURL=input.js.map
|
||||
Reference in New Issue
Block a user