Available on crate feature
__plugin_transform
only.Expand description
Proxy to the host’s data not attached to the AST, like sourcemap / comments.
Structs
A struct to exchange allocated data between memory spaces.
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.
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.