mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
16 lines
403 B
Rust
16 lines
403 B
Rust
use preset_env_base::query::Query;
|
|
pub use preset_env_base::query::Targets;
|
|
use serde::Deserialize;
|
|
|
|
#[derive(Debug, Default, Clone, Deserialize)]
|
|
#[serde(rename_all = "camelCase")]
|
|
#[serde(deny_unknown_fields)]
|
|
pub struct Options {
|
|
#[serde(default = "default_targets")]
|
|
pub env: Option<Targets>,
|
|
}
|
|
|
|
fn default_targets() -> Option<Targets> {
|
|
Some(Targets::Query(Query::Single("".into())))
|
|
}
|