uber/needle

Generated Code doesn't work with package specification

satoshi-baba-0823 opened this issue · 0 comments

I have a multi-module configuration, but if I specify a package with RootComponent, NeedleGenerated is not generated correctly.

I'll show you an example below.
If you remove the HogeModule designation, it works fine.

Example

import HogeModule
final class RootComponent: BootstrapComponent {
    var hogeComponent: HogeBuilder {
        HogeModule.HogeComponent(parent: self)
    }
}
public func registerProviderFactories() {
    __DependencyProviderRegistry.instance.registerDependencyProviderFactory(for: "^->RootComponent") { component in
        return EmptyDependencyProvider(component: component)
    }   
}