swc/crates/swc_plugin/tests/js.rs
2021-11-09 20:42:49 +09:00

15 lines
272 B
Rust

//! Ensure that worng macro definitions are catched by swc monorepo.
use swc_ecma_visit::Fold;
use swc_plugin::define_js_plugin;
define_js_plugin!(drop_console);
fn drop_console(_: ()) -> impl Fold {
DropConsole
}
struct DropConsole;
impl Fold for DropConsole {}