In a multiproject project setup <like this one.> I...
# javascript
r
In a multiproject project setup like this one. Is it possible for project A to depend on project B and build project A without including the js source of project B? Say example, a host webpack instance contains some component and a container webpack instance lazy loads (via js import and react lazy) a component from that host. Im trying to setup a microfrontend project that uses webpack 5's Module Federation and while keeping a type safe solution. Any direction with this would be greatly appreciated.
t
Yes, it's possible
In legacy it works with
runtimeOnly
configuration
💯 1
r
Back on this,
runtimeOnly
doesn't resolve the types in intellij. Im looking for a provided compile counterpart.
t
In legacy -
implementation
or
api
m
With IR and some evil fragile hacks we've implemented a website that uses lazy loading for most modules. https://github.com/fluidsonic/kjs-chunks