pub struct Options {Show 19 fields
pub config: Config,
pub skip_helper_injection: bool,
pub disable_hygiene: bool,
pub disable_fixer: bool,
pub global_mark: Option<Mark>,
pub cwd: PathBuf,
pub caller: Option<CallerOptions>,
pub filename: String,
pub config_file: Option<ConfigFile>,
pub root: Option<PathBuf>,
pub root_mode: RootMode,
pub swcrc: bool,
pub swcrc_roots: Option<PathBuf>,
pub env_name: String,
pub source_maps: Option<SourceMapsConfig>,
pub source_file_name: Option<String>,
pub source_root: Option<String>,
pub is_module: IsModule,
pub output_path: Option<PathBuf>,
}
Fields
config: Config
skip_helper_injection: bool
disable_hygiene: bool
disable_fixer: bool
global_mark: Option<Mark>
cwd: PathBuf
caller: Option<CallerOptions>
filename: String
config_file: Option<ConfigFile>
root: Option<PathBuf>
root_mode: RootMode
swcrc: bool
swcrc_roots: Option<PathBuf>
env_name: String
source_maps: Option<SourceMapsConfig>
source_file_name: Option<String>
source_root: Option<String>
is_module: IsModule
output_path: Option<PathBuf>
Implementations
pub fn build_as_input<'a, P>(
&self,
cm: &Arc<SourceMap>,
base: &FileName,
parse: impl FnOnce(Syntax, EsVersion, IsModule) -> Result<Program, Error>,
output_path: Option<&Path>,
source_file_name: Option<String>,
handler: &Handler,
is_module: IsModule,
config: Option<Config>,
comments: Option<&'a SwcComments>,
custom_before_pass: impl FnOnce(&Program) -> P
) -> Result<BuiltInput<impl 'a + Fold>, Error> where
P: 'a + Fold,
pub fn build_as_input<'a, P>(
&self,
cm: &Arc<SourceMap>,
base: &FileName,
parse: impl FnOnce(Syntax, EsVersion, IsModule) -> Result<Program, Error>,
output_path: Option<&Path>,
source_file_name: Option<String>,
handler: &Handler,
is_module: IsModule,
config: Option<Config>,
comments: Option<&'a SwcComments>,
custom_before_pass: impl FnOnce(&Program) -> P
) -> Result<BuiltInput<impl 'a + Fold>, Error> where
P: 'a + Fold,
parse
: (syntax, target, is_module)
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 Options
impl UnwindSafe for Options
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