diff --git a/packages/ts-plugin/src/index.ts b/packages/ts-plugin/src/index.ts index 184dddb..68f2f40 100644 --- a/packages/ts-plugin/src/index.ts +++ b/packages/ts-plugin/src/index.ts @@ -156,6 +156,7 @@ const boot: tslib.server.PluginModuleFactory = ({ typescript: ts }) => { const diagnostics: Array<{ message: string, start?: Syntax.Pos, end?: Syntax.Pos }> = []; // console.log(`Syndicate expanding ${name}: ${JSON.stringify(source)}`); console.log(`Syndicate expanding ${name}`); + const startTime = +new Date(); const { text: expandedText, targetToSourceMap, sourceToTargetMap } = compile({ source, name, @@ -165,6 +166,8 @@ const boot: tslib.server.PluginModuleFactory = ({ typescript: ts }) => { diagnostics.push({ message, start, end }); }, }); + const stopTime = +new Date(); + console.log(`Syndicate expansion of ${name} took ${stopTime - startTime} ms`); const sourceFile = makeSourceFile(expandedText); return { expandedText,