Volt.Builder.Resolver (Volt v0.22.0)

Copy Markdown View Source

Resolve import specifiers to absolute file paths for the build graph.

Summary

Functions

Return whether a resolved path is the empty module.

Resolve an import specifier to an absolute file path.

Functions

absolute?(specifier)

empty_module?(path)

Return whether a resolved path is the empty module.

resolve(specifier, importer, ctx)

Resolve an import specifier to an absolute file path.

Returns {:ok, path}, :skip (for externals/node builtins), or {:error, reason}.