You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By making sure only .ts/d.ts are parsed, globals are cached and correctly excluded.
Performance improvements:
Angular website build, from 61s to 11s.
@deepkit/desktop-ui from 60s to 8s.
debug(`Transform file with reflection=${reflection.mode} (${this.getModuleType()}) ${sourceFile.fileName} via config ${reflection.tsConfigPath||'none'}.`);
607
+
608
+
if(reflection.mode==='never'){
609
+
debug(`Transform file with reflection=${reflection.mode} (${this.getModuleType()}) ${sourceFile.fileName} via config ${reflection.tsConfigPath||'none'}.`);
610
+
returnsourceFile;
611
+
}
605
612
606
613
if(!(sourceFileasany).locals){
607
614
//@ts-ignore
@@ -1008,8 +1015,9 @@ export class ReflectionTransformer implements CustomTransformer {
debug(`Transform file with reflection=${reflection.mode} took ${took}ms (${this.getModuleType()}) ${sourceFile.fileName} via config ${reflection.tsConfigPath||'none'}.`);
1013
1021
returnthis.sourceFile;
1014
1022
}
1015
1023
@@ -1809,12 +1817,10 @@ export class ReflectionTransformer implements CustomTransformer {
0 commit comments