mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
Use an ES5 target
This commit is contained in:
parent
97e90b53d5
commit
de876bdfc9
@ -448,6 +448,8 @@ function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, opts
|
||||
options += " --stripInternal";
|
||||
}
|
||||
|
||||
options += " --target es5";
|
||||
|
||||
var cmd = host + " " + compilerPath + " " + options + " ";
|
||||
cmd = cmd + sources.join(" ");
|
||||
console.log(cmd + "\n");
|
||||
|
||||
@ -8,7 +8,8 @@
|
||||
"outFile": "../../built/local/tsc.js",
|
||||
"sourceMap": true,
|
||||
"declaration": true,
|
||||
"stripInternal": true
|
||||
"stripInternal": true,
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
"core.ts",
|
||||
|
||||
@ -10,7 +10,8 @@
|
||||
"stripInternal": true,
|
||||
"types": [
|
||||
"node", "mocha", "chai"
|
||||
]
|
||||
],
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
"../compiler/core.ts",
|
||||
|
||||
@ -10,7 +10,8 @@
|
||||
"stripInternal": true,
|
||||
"types": [
|
||||
"node"
|
||||
]
|
||||
],
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
"cancellationToken.ts"
|
||||
|
||||
@ -10,7 +10,8 @@
|
||||
"stripInternal": true,
|
||||
"types": [
|
||||
"node"
|
||||
]
|
||||
],
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
"../services/shims.ts",
|
||||
|
||||
@ -7,7 +7,8 @@
|
||||
"sourceMap": true,
|
||||
"stripInternal": true,
|
||||
"declaration": true,
|
||||
"types": []
|
||||
"types": [],
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
"../services/shims.ts",
|
||||
|
||||
@ -10,7 +10,8 @@
|
||||
"stripInternal": true,
|
||||
"types": [
|
||||
"node"
|
||||
]
|
||||
],
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
"../types.d.ts",
|
||||
|
||||
@ -9,7 +9,8 @@
|
||||
"sourceMap": true,
|
||||
"stripInternal": true,
|
||||
"noResolve": false,
|
||||
"declaration": true
|
||||
"declaration": true,
|
||||
"target": "es5"
|
||||
},
|
||||
"files": [
|
||||
"../compiler/core.ts",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user