Exactly how you do this on production: The NPM package that di depends on has to contain transpiled code (es5 code).