Module swc_common::plugin
source · [−]Available on crate feature
plugin-base
only.Expand description
Plugin support.
We need to replace operations related to thread-local variables in
swc_common
.
Structs
Wraps internal representation of serialized data. Consumers should not rely on specific details of byte format struct contains: it is strictly implementation detail which can change anytime.
Enums
An archived PluginError
Enum for possible errors while running transform via plugin.
This error indicates internal operation failure either in plugin_runner
or plugin_macro. Plugin’s transform fn itself does not allow to return
error - instead it should use provided handler
to emit corresponding error
to the host.
The resolver for an archived PluginError