package resolver
import "github.com/evanw/esbuild/internal/resolver"
Index ¶
- func IsNonModulePath(path string) bool
- type ResolveOptions
- type ResolveResult
- type ResolveStatus
- type Resolver
Functions ¶
func IsNonModulePath ¶
Types ¶
type ResolveOptions ¶
type ResolveOptions struct { ExtensionOrder []string Platform parser.Platform ExternalModules map[string]bool }
type ResolveResult ¶
type ResolveResult struct { AbsolutePath string Status ResolveStatus // If true, any ES6 imports to this file can be considered to have no side // effects. This means they should be removed if unused. IgnoreIfUnused bool // If true, the class field transform should use Object.defineProperty(). StrictClassFields bool }
type ResolveStatus ¶
type ResolveStatus uint8
const ( ResolveMissing ResolveStatus = iota ResolveEnabled ResolveDisabled ResolveExternal )
type Resolver ¶
type Resolver interface { Resolve(sourcePath string, importPath string) ResolveResult Read(path string) (string, bool) PrettyPath(path string) string }
func NewResolver ¶
Source Files ¶
- Version
- v0.5.9
- Published
- Jun 22, 2020
- Platform
- windows/amd64
- Imports
- 8 packages
- Last checked
- 4 hours ago –
Tools for package owners.