mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
feat(transformer): make Targets public (#5335)
This commit is contained in:
parent
8334bd4fa2
commit
3d4a64c811
4 changed files with 8 additions and 3 deletions
6
crates/oxc_transformer/src/env/mod.rs
vendored
6
crates/oxc_transformer/src/env/mod.rs
vendored
|
|
@ -2,4 +2,8 @@ mod data;
|
|||
mod options;
|
||||
mod targets;
|
||||
|
||||
pub use self::{data::can_enable_plugin, options::EnvOptions, targets::Versions};
|
||||
pub use self::{
|
||||
data::can_enable_plugin,
|
||||
options::EnvOptions,
|
||||
targets::{Targets, Versions},
|
||||
};
|
||||
|
|
|
|||
2
crates/oxc_transformer/src/env/options.rs
vendored
2
crates/oxc_transformer/src/env/options.rs
vendored
|
|
@ -12,7 +12,7 @@ fn default_as_true() -> bool {
|
|||
#[serde(default, rename_all = "camelCase", deny_unknown_fields)]
|
||||
pub struct EnvOptions {
|
||||
#[serde(default)]
|
||||
targets: Targets,
|
||||
pub targets: Targets,
|
||||
|
||||
#[serde(default = "default_as_true")]
|
||||
pub bugfixes: bool,
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ use serde::Deserialize;
|
|||
|
||||
use self::version::Version;
|
||||
|
||||
pub use self::query::Targets;
|
||||
pub mod query;
|
||||
pub mod version;
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ use oxc_traverse::{traverse_mut, Traverse, TraverseCtx};
|
|||
|
||||
pub use crate::{
|
||||
compiler_assumptions::CompilerAssumptions,
|
||||
env::EnvOptions,
|
||||
env::{EnvOptions, Targets},
|
||||
es2015::{ArrowFunctionsOptions, ES2015Options},
|
||||
options::{BabelOptions, TransformOptions},
|
||||
react::{ReactJsxRuntime, ReactOptions, ReactRefreshOptions},
|
||||
|
|
|
|||
Loading…
Reference in a new issue