Volt.Test.Bundler (Volt v0.15.0)

Copy Markdown View Source

Bundles a Volt JS/TS test file and its relative module graph.

This is intentionally narrower than the production builder: it supports local relative JavaScript/TypeScript/JSON imports so tests can exercise nearby modules, while Volt test virtual imports are stripped before bundling.

Summary

Functions

bundle_file(entry_path, opts \\ [])

@spec bundle_file(
  Path.t(),
  keyword()
) :: {:ok, Volt.Test.Bundle.t()} | {:error, term()}