Volt.JS.ImportExtractor (Volt v0.14.0)

Copy Markdown View Source

Extracts static, dynamic, CJS, and worker imports from JavaScript source.

Summary

Types

import_type()

@type import_type() :: :static | :dynamic

result()

@type result() :: Volt.JS.ImportExtractor.Result.t()

Functions

extract_typed(source, filename, opts \\ [])

@spec extract_typed(String.t(), String.t(), keyword()) ::
  {:ok, result()} | {:error, term()}