swc/crates/swc_css_prefixer/src/options.rs
2022-07-20 12:12:40 +09:00

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())))
}