Module swc_core::plugin

source ·
Available on crate features __common_plugin_transform or __plugin_transform_host only.


  • errors__common_plugin_transform or __css_plugin_transform or __ecma_plugin_transform
    Global HANDLER implementation for the plugin for error reporting.
  • metadata__common_plugin_transform or __css_plugin_transform or __ecma_plugin_transform
    Plugin’s environment metadata context.
  • 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.

Attribute Macros§