resolver

package
v0.0.0-...-1efd103 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("could not resolve css module")

ErrNotFound is returned when the resolver cannot resolve a path.

Functions

This section is empty.

Types

type NodeResolver

type NodeResolver struct {
	// BaseURL is the root directory of the project. It serves
	// the same purpose as baseUrl in tsconfig.json. If the value is relative,
	// it will be resolved against the current working directory.
	BaseURL string
}

NodeResolver implements the default node import resolution strategy. See https://www.typescriptlang.org/docs/handbook/module-resolution.html.

When resolving node_modules, the resolver will use the style attribute in package.json for resolution.

func (*NodeResolver) Resolve

func (r *NodeResolver) Resolve(spec, fromDir string) (string, error)

Resolve implements Resolver.

Jump to

Keyboard shortcuts

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