Volt.HMR.StyleDependencies (Volt v0.14.12)

Copy Markdown View Source

Updates HMR stylesheet dependency state from compiled pipeline output.

Volt.CSS.Dependencies owns parser-backed dependency discovery and Volt.HMR.StyleGraph owns ETS storage. This module bridges a compiled source file to that graph, choosing the CSS text that represents the file in dev: physical .css source, or emitted CSS from CSS modules and framework/plugin compilers.

Summary

Functions

Update stylesheet dependency state for a compiled source file.

Functions

update_from_compile(path, source, result)

@spec update_from_compile(String.t(), String.t(), Volt.Pipeline.Result.t() | map()) ::
  :ok

Update stylesheet dependency state for a compiled source file.