feat(swc_core): Expose plugin proxy to the host env (#7391)

This commit is contained in:
OJ Kwon 2023-05-14 21:12:33 -07:00 committed by GitHub
parent 8e6fea8519
commit 05b4c11497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,8 +33,18 @@ pub mod metadata {
}
/// Proxy to the host's data not attached to the AST, like sourcemap / comments.
#[cfg(any(docsrs, feature = "__common_plugin_transform"))]
#[cfg_attr(docsrs, doc(cfg(feature = "__common_plugin_transform")))]
#[cfg(any(
docsrs,
feature = "__common_plugin_transform",
feature = "__plugin_transform_host"
))]
#[cfg_attr(
docsrs,
doc(cfg(any(
feature = "__common_plugin_transform",
feature = "__plugin_transform_host"
)))
)]
pub mod proxies {
pub use swc_plugin_proxy::*;
}