Dependency injection for webpack bundles