github.com/evanw/esbuild/internal/resolver.resolver.fs (field)

59 uses

	github.com/evanw/esbuild/internal/resolver (current package)
		resolver.go#L125: 	fs      fs.FS
		resolver.go#L194: 		fs:                     fs,
		resolver.go#L294: 	absPath := r.fs.Join(sourceDir, importPath)
		resolver.go#L329: 			if dirInfo := r.dirInfoCached(r.fs.Dir(path.Text)); dirInfo != nil {
		resolver.go#L330: 				base := r.fs.Base(path.Text)
		resolver.go#L377: 						if symlink := entry.Symlink(r.fs); symlink != "" {
		resolver.go#L382: 							path.Text = r.fs.Join(dirInfo.absRealPath, base)
		resolver.go#L405: 	if strings.HasPrefix(importPath, "/") || r.fs.IsAbs(importPath) {
		resolver.go#L435: 		absPath := r.fs.Join(sourceDir, importPath)
		resolver.go#L443: 		importDirInfo := r.dirInfoCached(r.fs.Dir(absPath))
		resolver.go#L529: 		resultDir := r.fs.Dir(path.Text)
		resolver.go#L556: 		return r.loadAsFileOrDirectory(r.fs.Join(sourceDirInfo.absPath, importPath), kind)
		resolver.go#L562: 		if rel, ok := r.fs.Rel(r.fs.Cwd(), path.Text); ok {
		resolver.go#L683: 	contents, err := r.caches.FSCache.ReadFile(r.fs, file)
		resolver.go#L694: 	fileDir := r.fs.Dir(file)
		resolver.go#L706: 				if r.fs.Base(current) != "node_modules" {
		resolver.go#L707: 					join := r.fs.Join(current, "node_modules", extends)
		resolver.go#L708: 					filesToCheck := []string{r.fs.Join(join, "tsconfig.json"), join, join + ".json"}
		resolver.go#L728: 				next := r.fs.Dir(current)
		resolver.go#L737: 			if !r.fs.IsAbs(extends) {
		resolver.go#L738: 				extendsFile = r.fs.Join(fileDir, extends)
		resolver.go#L771: 	if result.BaseURL != nil && !r.fs.IsAbs(*result.BaseURL) {
		resolver.go#L772: 		*result.BaseURL = r.fs.Join(fileDir, *result.BaseURL)
		resolver.go#L775: 	if result.Paths != nil && !r.fs.IsAbs(result.BaseURLForPaths) {
		resolver.go#L776: 		result.BaseURLForPaths = r.fs.Join(fileDir, result.BaseURLForPaths)
		resolver.go#L785: 	parentDir := r.fs.Dir(path)
		resolver.go#L796: 	entries, err := r.fs.ReadDirectory(path)
		resolver.go#L819: 	base := r.fs.Base(path)
		resolver.go#L822: 			info.hasNodeModules = entry.Kind(r.fs) == fs.DirEntry
		resolver.go#L833: 				if symlink := entry.Symlink(r.fs); symlink != "" {
		resolver.go#L836: 					info.absRealPath = r.fs.Join(parentInfo.absRealPath, base)
		resolver.go#L843: 	if entry, _ := entries.Get("package.json"); entry != nil && entry.Kind(r.fs) == fs.FileEntry {
		resolver.go#L856: 			if entry, _ := entries.Get("tsconfig.json"); entry != nil && entry.Kind(r.fs) == fs.FileEntry {
		resolver.go#L857: 				tsConfigPath = r.fs.Join(path, "tsconfig.json")
		resolver.go#L858: 			} else if entry, _ := entries.Get("jsconfig.json"); entry != nil && entry.Kind(r.fs) == fs.FileEntry {
		resolver.go#L859: 				tsConfigPath = r.fs.Join(path, "jsconfig.json")
		resolver.go#L895: 	packageJsonPath := r.fs.Join(path, "package.json")
		resolver.go#L896: 	contents, err := r.caches.FSCache.ReadFile(r.fs, packageJsonPath)
		resolver.go#L923: 		if mainEntries, err := r.fs.ReadDirectory(pathText); err == nil {
		resolver.go#L949: 				if absPath := toAbsPath(r.fs.Join(path, main), jsonSource.RangeOfString(mainJson.Loc)); absPath != nil {
		resolver.go#L981: 						key = r.fs.Join(path, key)
		resolver.go#L1039: 				absPattern := r.fs.Join(path, js_lexer.UTF16ToString(item.Value))
		resolver.go#L1091: 	dirPath := r.fs.Dir(path)
		resolver.go#L1092: 	entries, err := r.fs.ReadDirectory(dirPath)
		resolver.go#L1102: 	base := r.fs.Base(path)
		resolver.go#L1105: 	if entry, diffCase := entries.Get(base); entry != nil && entry.Kind(r.fs) == fs.FileEntry {
		resolver.go#L1111: 		if entry, diffCase := entries.Get(base + ext); entry != nil && entry.Kind(r.fs) == fs.FileEntry {
		resolver.go#L1136: 			if entry, diffCase := entries.Get(base[:lastDot] + ext); entry != nil && entry.Kind(r.fs) == fs.FileEntry {
		resolver.go#L1152: 		if entry, diffCase := entries.Get(base); entry != nil && entry.Kind(r.fs) == fs.FileEntry {
		resolver.go#L1153: 			return r.fs.Join(path, base), true, diffCase
		resolver.go#L1286: 				if !r.fs.IsAbs(originalPath) {
		resolver.go#L1287: 					absoluteOriginalPath = r.fs.Join(absBaseURL, originalPath)
		resolver.go#L1339: 			if !r.fs.IsAbs(originalPath) {
		resolver.go#L1340: 				absoluteOriginalPath = r.fs.Join(absBaseURL, originalPath)
		resolver.go#L1363: 			basePath := r.fs.Join(*dirInfo.tsConfigJSON.BaseURL, path)
		resolver.go#L1372: 		absPath := r.fs.Join(absDir, path)
		resolver.go#L1383: 			absPath := r.fs.Join(dirInfo.absPath, "node_modules", path)
		resolver.go#L1386: 			importDirInfo := r.dirInfoCached(r.fs.Dir(absPath))