Log expansion delay
This commit is contained in:
parent
9cf00720f8
commit
1f72baf3ad
|
@ -156,6 +156,7 @@ const boot: tslib.server.PluginModuleFactory = ({ typescript: ts }) => {
|
||||||
const diagnostics: Array<{ message: string, start?: Syntax.Pos, end?: Syntax.Pos }> = [];
|
const diagnostics: Array<{ message: string, start?: Syntax.Pos, end?: Syntax.Pos }> = [];
|
||||||
// console.log(`Syndicate expanding ${name}: ${JSON.stringify(source)}`);
|
// console.log(`Syndicate expanding ${name}: ${JSON.stringify(source)}`);
|
||||||
console.log(`Syndicate expanding ${name}`);
|
console.log(`Syndicate expanding ${name}`);
|
||||||
|
const startTime = +new Date();
|
||||||
const { text: expandedText, targetToSourceMap, sourceToTargetMap } = compile({
|
const { text: expandedText, targetToSourceMap, sourceToTargetMap } = compile({
|
||||||
source,
|
source,
|
||||||
name,
|
name,
|
||||||
|
@ -165,6 +166,8 @@ const boot: tslib.server.PluginModuleFactory = ({ typescript: ts }) => {
|
||||||
diagnostics.push({ message, start, end });
|
diagnostics.push({ message, start, end });
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
const stopTime = +new Date();
|
||||||
|
console.log(`Syndicate expansion of ${name} took ${stopTime - startTime} ms`);
|
||||||
const sourceFile = makeSourceFile(expandedText);
|
const sourceFile = makeSourceFile(expandedText);
|
||||||
return {
|
return {
|
||||||
expandedText,
|
expandedText,
|
||||||
|
|
Loading…
Reference in New Issue