swc_ecma_compiler 7.0.0

Compatibility layer for the ECMAScript standard
Documentation
use bitflags::bitflags;

bitflags! {
    #[derive(Debug, Clone, Copy)]
    pub struct Features: u64 {
        const STATIC_BLOCKS = 1 << 0;
        const OPTIONAL_CHAINING = 1 << 1;
        const PRIVATE_IN_OBJECT = 1 << 2;
        const LOGICAL_ASSIGNMENTS = 1 << 3;
        const EXPORT_NAMESPACE_FROM = 1 << 4;
        const NULLISH_COALESCING = 1 << 5;
    }
}

impl Default for Features {
    fn default() -> Self {
        Self::empty()
    }
}