Need help to optimize Typescript compiler from someone who understands the Meteor compiler plugin system

The new refapp:meteor-typescript compiler is working great for us but it’s a little slow.

There isn’t much we can do with the actual Typescript compilation - when it looks at all combined Typescript sources and decides which ones need to be rebuilt based on the saved incremental buildinfo - but the part where the transpiled source is sent to Meteor seems unnecessarily slow - Meteor asks for transpiled sources even when the source or hash value have not changed and this causes more compilation downstream (Babel etc).

I think the problem lies in how to properly set hash values in AddJavaScript so that the lazy compilation takes effect but I could be wrong.

So I was hoping that there was someone active in this forum that could help out to tell me how to write the code to be optimal.

Here’s the relevant source code:

/Per