rally/dependency_resolver
Client dependency resolver.
Starting from the tree-shaken page modules and layout files, follows their import chains through the server’s src/ tree and copies any shared modules the client package needs. Catches @external(erlang) imports that would fail to compile for JavaScript and reports the import chain so the developer can find the problem.
Values
pub fn resolve(
seed_sources seed_sources: List(#(String, String)),
src_root src_root: String,
client_root client_root: String,
) -> Result(List(client.GeneratedFile), String)