Skip to content

wirestate-dev ​

Bundler-agnostic core of the Wirestate development tooling: the source transform that wraps modules declaring @Injectable() classes in hot-reload markers. No parser is involved: the Wirestate runtime attributes classes to their module while it evaluates. Bundler adapters such as @wirestate/dev/vite build on these primitives.

Transform ​

FunctionDescription
createHotFooterBuilds the hot-reload footer appended to a module declaring injectable classes.
createHotHeaderBuilds the statement prepended to a module declaring injectable classes.
transformHotModuleWraps a module in hot-reload markers when it may declare injectable classes.