Volt.Plugin.Solid (Volt v0.11.0)

Copy Markdown View Source

Solid JSX/TSX support for Volt.

Solid JSX requires the Solid compiler rather than a generic JSX runtime transform. This plugin runs babel-preset-solid through Volt's JavaScript runtime and leaves normal module resolution to Volt. Add Volt.Plugin.Solid to config :volt, :plugins when using Solid TSX, since .jsx and .tsx files are also used by React and generic JSX builds.

Summary

Functions

compile(path, source, opts, plugin_opts)

extract_imports(path, source, opts, plugin_opts)

runtime_packages()