(path: string, cwd: string)
| 2877 | |
| 2878 | // esbuild reads an entry naming a file in cwd as a path, though it would resolve it as a package |
| 2879 | const esbuildEntryPathOf = (path: string, cwd: string) => |
| 2880 | ( |
| 2881 | !isAbsolute(path) && |
| 2882 | !/^\.\.?(?:\/|$)/.test(path) && |
| 2883 | statSync(join(cwd, path), { throwIfNoEntry: false })?.isFile() |
| 2884 | ) ? |
| 2885 | `./${path}` |
| 2886 | : path |
| 2887 | |
| 2888 | // esbuild's stdin, as a file beside what it imports |
| 2889 | const stdinEntryOf = ({ |
no test coverage detected