Struct swc_ecma_transforms_react::Options[][src]

pub struct Options {
    pub next: bool,
    pub runtime: Option<Runtime>,
    pub import_source: String,
    pub pragma: String,
    pub pragma_frag: String,
    pub throw_if_namespace: bool,
    pub development: bool,
    pub use_builtins: bool,
    pub use_spread: bool,
    pub refresh: Option<RefreshOptions>,
}

Fields

next: bool

If this is true, swc will behave just like babel 8 with BABEL_8_BREAKING: true.

runtime: Option<Runtime>import_source: String

For automatic runtime

pragma: Stringpragma_frag: Stringthrow_if_namespace: booldevelopment: booluse_builtins: bool

TODO: Remove this field.

use_spread: boolrefresh: Option<RefreshOptions>

Trait Implementations

impl Clone for Options[src]

impl Debug for Options[src]

impl Default for Options[src]

impl<'de> Deserialize<'de> for Options[src]

impl Eq for Options[src]

impl PartialEq<Options> for Options[src]

impl Serialize for Options[src]

impl StructuralEq for Options[src]

impl StructuralPartialEq for Options[src]

Auto Trait Implementations

impl RefUnwindSafe for Options

impl Send for Options

impl Sync for Options

impl Unpin for Options

impl UnwindSafe for Options

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Node for T where
    T: Any + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.