Struct swc::config::BuiltInput
source · [−]pub struct BuiltInput<P: Fold> {Show 13 fields
pub program: Program,
pub pass: P,
pub syntax: Syntax,
pub target: EsVersion,
pub minify: bool,
pub external_helpers: bool,
pub source_maps: SourceMapsConfig,
pub input_source_map: InputSourceMap,
pub is_module: IsModule,
pub output_path: Option<PathBuf>,
pub source_file_name: Option<String>,
pub preserve_comments: Option<BoolOrObject<JsMinifyCommentOption>>,
pub inline_sources_content: bool,
}
Expand description
One BuiltConfig
per a directory with swcrc
Fields
program: Program
pass: P
syntax: Syntax
target: EsVersion
minify: bool
Minification for codegen. Minifier transforms will be inserted into
pass
.
external_helpers: bool
source_maps: SourceMapsConfig
input_source_map: InputSourceMap
is_module: IsModule
output_path: Option<PathBuf>
source_file_name: Option<String>
preserve_comments: Option<BoolOrObject<JsMinifyCommentOption>>
inline_sources_content: bool
Auto Trait Implementations
impl<P> RefUnwindSafe for BuiltInput<P> where
P: RefUnwindSafe,
impl<P> Send for BuiltInput<P> where
P: Send,
impl<P> Sync for BuiltInput<P> where
P: Sync,
impl<P> Unpin for BuiltInput<P> where
P: Unpin,
impl<P> UnwindSafe for BuiltInput<P> where
P: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more