pub fn compile(root: &Path, mod_id: &str) -> Result<Compiled, String>
Compiles the mod’s resources (see the module docs). Any error fails the whole thing, listing every problem.