Documentation ¶
Index ¶
- func GlobResolveAST(log logger.Log, source logger.Source, importRecords []ast.ImportRecord, ...) js_ast.AST
- func LazyExportAST(log logger.Log, source logger.Source, options Options, expr js_ast.Expr, ...) js_ast.AST
- func Parse(log logger.Log, source logger.Source, options Options) (result js_ast.AST, ok bool)
- func ParseDefineExprOrJSON(text string) (config.DefineExpr, js_ast.E)
- func ParseGlobalName(log logger.Log, source logger.Source) (result []string, ok bool)
- func ParseJSON(log logger.Log, source logger.Source, options JSONOptions) (result js_ast.Expr, ok bool)
- func ParseSourceMap(log logger.Log, source logger.Source) *sourcemap.SourceMap
- type JSONOptions
- type JSXImport
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlobResolveAST ¶ added in v0.19.0
func LazyExportAST ¶
func ParseDefineExprOrJSON ¶ added in v0.14.44
func ParseDefineExprOrJSON(text string) (config.DefineExpr, js_ast.E)
func ParseGlobalName ¶ added in v0.8.0
func ParseSourceMap ¶
Specification: https://sourcemaps.info/spec.html
Types ¶
type JSONOptions ¶ added in v0.8.12
type JSONOptions struct { Flavor js_lexer.JSONFlavor ErrorSuffix string }
type Options ¶ added in v0.8.12
type Options struct {
// contains filtered or unexported fields
}
This is used as part of an incremental build cache key. Some of these values can potentially change between builds if they are derived from nearby "package.json" or "tsconfig.json" files that were changed since the last build.
func OptionsForYarnPnP ¶ added in v0.15.0
func OptionsForYarnPnP() Options
func OptionsFromConfig ¶ added in v0.8.12
Click to show internal directories.
Click to hide internal directories.