Documentation ¶
Index ¶
- Constants
- func ModuleExportsAST(source logging.Source, expr ast.Expr) ast.AST
- func Parse(log logging.Log, source logging.Source, options ParseOptions) (result ast.AST, ok bool)
- func ParseJson(log logging.Log, source logging.Source) (result ast.Expr, ok bool)
- type JSXOptions
- type LanguageTarget
- type ParseOptions
Constants ¶
View Source
const ( // These are arranged such that ESNext is the default zero value and such // that earlier releases are less than later releases ES2015 = -6 ES2016 = -5 ES2017 = -4 ES2018 = -3 ES2019 = -2 ES2020 = -1 ESNext = 0 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSXOptions ¶
type LanguageTarget ¶
type LanguageTarget int8
type ParseOptions ¶
type ParseOptions struct { IsBundling bool Defines map[string]ast.E MangleSyntax bool KeepSingleExpression bool OmitWarnings bool JSX JSXOptions Target LanguageTarget }
Click to show internal directories.
Click to hide internal directories.