pub struct TransformOptionsBuilder {Show 25 fields
pub source_map: SourceMap,
pub source_root: String,
pub sources_content: SourcesContent,
pub target: Target,
pub format: Format,
pub global_name: String,
pub engines: Vec<Engine>,
pub minify_whitespace: bool,
pub minify_identifiers: bool,
pub minify_syntax: bool,
pub charset: Charset,
pub tree_shaking: TreeShaking,
pub ignore_annotations: bool,
pub legal_comments: LegalComments,
pub jsx_mode: JSXMode,
pub jsx_factory: String,
pub jsx_fragment: String,
pub tsconfig_raw: String,
pub footer: String,
pub banner: String,
pub define: HashMap<String, String>,
pub pure: Vec<String>,
pub keep_names: bool,
pub source_file: String,
pub loader: Loader,
}
Fields§
§source_map: SourceMap
§source_root: String
§sources_content: SourcesContent
§target: Target
§format: Format
§global_name: String
§engines: Vec<Engine>
§minify_whitespace: bool
§minify_identifiers: bool
§minify_syntax: bool
§charset: Charset
§tree_shaking: TreeShaking
§ignore_annotations: bool
§legal_comments: LegalComments
§jsx_mode: JSXMode
§jsx_factory: String
§jsx_fragment: String
§tsconfig_raw: String
§define: HashMap<String, String>
§pure: Vec<String>
§keep_names: bool
§source_file: String
§loader: Loader
Implementations§
Source§impl TransformOptionsBuilder
impl TransformOptionsBuilder
pub fn new() -> TransformOptionsBuilder
pub fn build(self) -> Arc<TransformOptions>
Trait Implementations§
Source§impl Clone for TransformOptionsBuilder
impl Clone for TransformOptionsBuilder
Source§fn clone(&self) -> TransformOptionsBuilder
fn clone(&self) -> TransformOptionsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TransformOptionsBuilder
impl RefUnwindSafe for TransformOptionsBuilder
impl Send for TransformOptionsBuilder
impl Sync for TransformOptionsBuilder
impl Unpin for TransformOptionsBuilder
impl UnwindSafe for TransformOptionsBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more