Struct swc_ecma_preset_env::Config [−][src]
pub struct Config {Show 13 fields
pub mode: Option<Mode>,
pub debug: bool,
pub dynamic_import: bool,
pub loose: bool,
pub skip: Vec<JsWord>,
pub include: Vec<FeatureOrModule>,
pub exclude: Vec<FeatureOrModule>,
pub core_js: Option<Version>,
pub targets: Option<Targets>,
pub path: PathBuf,
pub shipped_proposals: bool,
pub force_all_transforms: bool,
pub bugfixes: bool,
}
Fields
mode: Option<Mode>
debug: bool
dynamic_import: bool
loose: bool
skip: Vec<JsWord>
Skipped es features.
e.g.)
core-js/modules/foo
include: Vec<FeatureOrModule>
exclude: Vec<FeatureOrModule>
core_js: Option<Version>
The version of the used core js.
targets: Option<Targets>
path: PathBuf
shipped_proposals: bool
force_all_transforms: bool
bugfixes: bool
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
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