Module proxies

Source
Available on crate features __common_plugin_transform or __plugin_transform_host only.
Expand description

Proxy to the host’s data not attached to the AST, like sourcemap / comments. Or interfaces to setup the plugin’s environment from the host.

Structs§

AllocatedBytesPtr
A struct to exchange allocated data between memory spaces.
PluginCommentsProxy
A struct implements swc_common::comments::Comments for the plugin. This is a proxy to the host’s comments reference while plugin transform runs, does not contain actual data but lazily requests to the host for each interfaces.
PluginSourceMapProxy
TransformPluginProgramMetadata
An arbitary metadata for given Program to run transform in plugin. These are not directly attached to Program’s AST structures but required for certain transforms.