We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57e2fe0 commit 70b5fb8Copy full SHA for 70b5fb8
src/compiler/transformer.ts
@@ -222,7 +222,16 @@ namespace ts {
222
state = TransformationState.Initialized;
223
224
// Transform each node.
225
- const transformed = map(nodes, allowDtsFiles ? transformation : transformRoot);
+ const transformed: T[] = [];
226
+ for (const node of nodes) {
227
+ const start = timestamp();
228
+ transformed.push((allowDtsFiles ? transformation : transformRoot)(node));
229
+ const end = timestamp();
230
+ const path = (node as any as SourceFile).path;
231
+ if (path) {
232
+ console.error(`Transformed ${path} in ${end - start}ms`);
233
+ }
234
235
236
// prevent modification of the lexical environment.
237
state = TransformationState.Completed;
0 commit comments