mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 02:06:08 +03:00
18 lines
513 B
Rust
18 lines
513 B
Rust
// Validate conflict between host / plugin features
|
|
#[cfg(all(
|
|
feature = "plugin_transform",
|
|
any(
|
|
feature = "plugin_transform_host_native",
|
|
feature = "plugin_transform_host_js"
|
|
)
|
|
))]
|
|
compile_error!(
|
|
"'plugin_transform' and 'plugin_transform_host*' features are mutually exclusive. If you're \
|
|
writing a plugin, use 'plugin_transform' feature. If you're writing a custom SWC binary to \
|
|
run plugin, use 'plugin_transform_host_*' instead."
|
|
);
|
|
|
|
fn main() {
|
|
/* noop */
|
|
}
|