Also compile the constructor if a class is exported

This commit is contained in:
dcodeIO
2018-04-19 02:58:04 +02:00
parent 9579086699
commit 350befee9b
6 changed files with 408 additions and 18 deletions

View File

@ -1203,6 +1203,8 @@ export class Compiler extends DiagnosticEmitter {
}
}
}
var ctorInstance = instance.constructorInstance;
if (ctorInstance) this.compileFunction(ctorInstance);
var instanceMembers = instance.members;
if (instanceMembers) {
for (let element of instanceMembers.values()) {