package compat
import "github.com/evanw/esbuild/internal/compat"
Index ¶
- type CSSFeature
- func UnsupportedCSSFeatures(constraints map[Engine][]int) (unsupported CSSFeature)
- func (features CSSFeature) Has(feature CSSFeature) bool
- type Engine
- type JSFeature
Types ¶
type CSSFeature ¶
type CSSFeature uint32
const ( HexRGBA CSSFeature = 1 << iota RebeccaPurple // This feature includes all of the following: // - Allow floats in rgb() and rgba() // - hsl() can accept alpha values // - rgb() can accept alpha values // - Space-separated functional color notations Modern_RGB_HSL )
func UnsupportedCSSFeatures ¶
func UnsupportedCSSFeatures(constraints map[Engine][]int) (unsupported CSSFeature)
Return all features that are not available in at least one environment
func (CSSFeature) Has ¶
func (features CSSFeature) Has(feature CSSFeature) bool
type Engine ¶
type Engine uint8
type JSFeature ¶
type JSFeature uint64
const ( ArraySpread JSFeature = 1 << iota Arrow AsyncAwait AsyncGenerator BigInt Class ClassField ClassPrivateAccessor ClassPrivateField ClassPrivateMethod ClassPrivateStaticAccessor ClassPrivateStaticField ClassPrivateStaticMethod ClassStaticField Const DefaultArgument Destructuring ExponentOperator ExportStarAs ForAwait ForOf Generator Hashbang ImportMeta Let LogicalAssignment NestedRestBinding NewTarget NullishCoalescing ObjectAccessors ObjectExtensions ObjectRestSpread OptionalCatchBinding OptionalChain RestArgument TemplateLiteral TopLevelAwait )
func UnsupportedJSFeatures ¶
Return all features that are not available in at least one environment
func (JSFeature) Has ¶
Source Files ¶
- Version
- v0.7.18
- Published
- Oct 20, 2020
- Platform
- windows/amd64
- Last checked
- 41 minutes ago –
Tools for package owners.