Volt.Builder.Collector (Volt v0.10.1)

Copy Markdown View Source

Walks the dependency graph from entry files, collecting modules and workers.

Summary

Functions

Walk the dependency graph from an entry file.

Functions

collect(entry_path, ctx)

Walk the dependency graph from an entry file.

Returns {:ok, modules, dep_map, workers} where:

  • modules is [{abs_path, label, source}] in dependency order
  • dep_map is %{abs_path => %{static: [abs_path], dynamic: [abs_path]}}
  • workers is %{importer_path => %{specifier => worker_abs_path}}