1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

Print 'Compiling' when compiling TS.

This commit is contained in:
Ryan Dahl 2018-09-26 22:58:11 -04:00
parent d38ccfc6dc
commit b1d9014b5b

View file

@ -418,14 +418,11 @@ export class DenoCompiler
*/
compile(moduleMetaData: ModuleMetaData): OutputCode {
const recompile = !!this.recompile;
this._log("compiler.compile", {
filename: moduleMetaData.fileName,
recompile
});
if (!recompile && moduleMetaData.outputCode) {
return moduleMetaData.outputCode;
}
const { fileName, sourceCode } = moduleMetaData;
const { fileName, sourceCode, moduleId } = moduleMetaData;
console.warn("Compiling", moduleId);
const service = this._service;
const output = service.getEmitOutput(fileName);