package resolver
import "github.com/evanw/esbuild/internal/resolver"
Index ¶
Functions ¶
func IsPackagePath ¶
Package paths are loaded from a "node_modules" directory. Non-package paths are relative or absolute paths.
Types ¶
type ResolveResult ¶
type ResolveResult struct { Path ast.Path IsExternal bool // If not empty, these should override the default values JSXFactory []string // Default if empty: "React.createElement" JSXFragment []string // Default if empty: "React.Fragment" // 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 Resolver ¶
type Resolver interface { Resolve(sourceDir string, importPath string) *ResolveResult ResolveAbs(absPath string) *ResolveResult Read(path string) (string, bool) PrettyPath(path string) string }
func NewResolver ¶
Source Files ¶
- Version
- v0.6.9
- Published
- Jul 29, 2020
- Platform
- windows/amd64
- Imports
- 9 packages
- Last checked
- 4 hours ago –
Tools for package owners.