js_parser

package
v0.0.0-...-4535ac3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobResolveAST

func GlobResolveAST(log logger.Log, source logger.Source, importRecords []ast.ImportRecord, object *js_ast.EObject, name string) js_ast.AST

func LazyExportAST

func LazyExportAST(log logger.Log, source logger.Source, options Options, expr js_ast.Expr, apiCall string) js_ast.AST

func Parse

func Parse(log logger.Log, source logger.Source, options Options) (result js_ast.AST, ok bool)

func ParseDefineExprOrJSON

func ParseDefineExprOrJSON(text string) (config.DefineExpr, js_ast.E)

Types

type JSXImport

type JSXImport uint8
const (
	JSXImportJSX JSXImport = iota
	JSXImportJSXS
	JSXImportFragment
	JSXImportCreateElement
)

type Options

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

func OptionsForYarnPnP() Options

func OptionsFromConfig

func OptionsFromConfig(options *config.Options) Options

func (*Options) Equal

func (a *Options) Equal(b *Options) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL