Struct swc::config::BuiltInput
source · [−]pub struct BuiltInput<P: Fold> {Show 14 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 comments: Option<SingleThreadedComments>,
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>
comments: Option<SingleThreadedComments>
preserve_comments: Option<BoolOrObject<JsMinifyCommentOption>>
inline_sources_content: bool
Auto Trait Implementations
impl<P> !RefUnwindSafe for BuiltInput<P>
impl<P> !Send for BuiltInput<P>
impl<P> !Sync for BuiltInput<P>
impl<P> Unpin for BuiltInput<P> where
P: Unpin,
impl<P> !UnwindSafe for BuiltInput<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more