Merge pull request #2572 from Microsoft/seriouslyWhyWouldntYouWantComments
Keep comments in debug builds.
This commit is contained in:
commit
03a1542845
1 changed files with 5 additions and 3 deletions
8
Jakefile
8
Jakefile
|
@ -222,15 +222,17 @@ function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, noOu
|
||||||
var dir = useBuiltCompiler ? builtLocalDirectory : LKGDirectory;
|
var dir = useBuiltCompiler ? builtLocalDirectory : LKGDirectory;
|
||||||
var options = "--module commonjs -noImplicitAny";
|
var options = "--module commonjs -noImplicitAny";
|
||||||
|
|
||||||
if (!keepComments) {
|
// Keep comments when specifically requested
|
||||||
options += " -removeComments";
|
// or when in debug mode.
|
||||||
|
if (!(keepComments || useDebugMode)) {
|
||||||
|
options += " --removeComments";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (generateDeclarations) {
|
if (generateDeclarations) {
|
||||||
options += " --declaration";
|
options += " --declaration";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (useDebugMode || preserveConstEnums) {
|
if (preserveConstEnums || useDebugMode) {
|
||||||
options += " --preserveConstEnums";
|
options += " --preserveConstEnums";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue