 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func MakeJsLanguage(entrypoint string, cfg *Config) (language.Language[js_grammar.File], error)
- type CompilerOptions
- type Config
- type ExportsCacheKey
- type Language
- func (l *Language) ParseExports(file *js_grammar.File) (*language.ExportsEntries, error)
- func (l *Language) ParseFile(id string) (*js_grammar.File, error)
- func (l *Language) ParseImports(file *js_grammar.File) (*language.ImportsResult, error)
- func (l *Language) ResolvePath(unresolved string, dir string) (string, error)
 
- type TsConfig
- type Workspaces
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var Extensions = []string{
	"js", "ts", "tsx", "jsx", "d.ts", "mjs", "cjs",
}
    Functions ¶
func MakeJsLanguage ¶
Types ¶
type CompilerOptions ¶
type ExportsCacheKey ¶
type ExportsCacheKey string
type Language ¶
type Language struct {
	Workspaces *Workspaces
	Cfg        *Config
}
    func (*Language) ParseExports ¶
func (l *Language) ParseExports(file *js_grammar.File) (*language.ExportsEntries, error)
func (*Language) ParseImports ¶
func (l *Language) ParseImports(file *js_grammar.File) (*language.ImportsResult, error)
type TsConfig ¶
type TsConfig struct {
	CompilerOptions CompilerOptions `json:"compilerOptions,omitempty"`
	// contains filtered or unexported fields
}
    func ParseTsConfig ¶
func (*TsConfig) ResolveFromBaseUrl ¶ added in v0.17.4
type Workspaces ¶ added in v0.17.4
type Workspaces struct {
	// contains filtered or unexported fields
}
    func NewWorkspaces ¶ added in v0.17.4
func NewWorkspaces(searchPath string) (*Workspaces, error)
func (*Workspaces) ResolveFromWorkspaces ¶ added in v0.17.4
func (w *Workspaces) ResolveFromWorkspaces(unresolved string) (string, error)
       Source Files
      ¶
      Source Files
      ¶
    
   Click to show internal directories. 
   Click to hide internal directories.