Struct swc::config::BuiltConfig [−][src]
pub struct BuiltConfig<P: Fold> {
pub pass: P,
pub syntax: Syntax,
pub target: JscTarget,
pub minify: bool,
pub external_helpers: bool,
pub source_maps: SourceMapsConfig,
pub input_source_map: InputSourceMap,
pub is_module: bool,
pub output_path: Option<PathBuf>,
pub source_file_name: Option<String>,
pub preserve_comments: Option<BoolOrObject<JsMinifyCommentOption>>,
}
Expand description
One BuiltConfig
per a directory with swcrc
Fields
pass: P
syntax: Syntax
target: JscTarget
minify: bool
Minification for codegen. Minifier transforms will be inserted into
pass
.
external_helpers: bool
source_maps: SourceMapsConfig
input_source_map: InputSourceMap
is_module: bool
output_path: Option<PathBuf>
source_file_name: Option<String>
preserve_comments: Option<BoolOrObject<JsMinifyCommentOption>>