mod minify; mod parse; mod print; mod transform; mod util; use std::sync::Arc; use swc::Compiler; use swc_common::{sync::Lazy, FilePathMapping, SourceMap}; static COMPILER: Lazy> = Lazy::new(|| { let cm = Arc::new(SourceMap::new(FilePathMapping::empty())); Arc::new(Compiler::new(cm)) }); fn get_compiler() -> Arc { COMPILER.clone() }