swc/crates/swc_plugin/tests/js.rs
Donny/강동윤 74fd353053
fix(es/minifier): Fix bugs (#3238)
swc_ecma_minifier:
 - `collapse_vars`: Respect `mutated`. (Closes #2679)
 - Add a test for https://github.com/vercel/next.js/issues/31084.
2022-01-12 16:57:54 +09:00

12 lines
204 B
Rust

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