Fix dependency injection for use with minifiers