mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Get codebase building pre bundling
This isn't totally complete, but enough to get everything building and tests running manually. The next commit will make the build work fully.
This commit is contained in:
1 parent
6dfa4299d7
commit
36e29448e9
71 files changed
+615
-1204
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import * as ts from "./_namespaces/ts";
|
||||
import { Debug, LogLevel } from "./_namespaces/ts";
|
||||
|
||||
// TODO(jakebailey): replace const enum with enum in d.ts
|
||||
|
||||
// enable deprecation logging
|
||||
declare const console: any;
|
||||
if (typeof console !== "undefined") {
|
||||
Debug.loggingHost = {
|
||||
log(level, s) {
|
||||
switch (level) {
|
||||
case LogLevel.Error: return console.error(s);
|
||||
case LogLevel.Warning: return console.warn(s);
|
||||
case LogLevel.Info: return console.log(s);
|
||||
case LogLevel.Verbose: return console.log(s);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export = ts;
|
||||
Reference in new issue
Block a user