fix: #1 dependency injection broken when minimized

This fixes issue #1