(file: string)
| 30 | * @internal |
| 31 | */ |
| 32 | export function tryStatSync(file: string) { |
| 33 | try { |
| 34 | // The "throwIfNoEntry" is a performance optimization for cases where the file does not exist |
| 35 | return fs.statSync(file, { throwIfNoEntry: false }); |
| 36 | } catch { |
| 37 | // Ignore errors |
| 38 | } |
| 39 | return; |
| 40 | } |
| 41 | |
| 42 | // https://github.com/vitejs/vite/blob/b7ddfae5f852c2948fab03e94751ce56f5f31ce0/packages/vite/src/node/utils.ts#L1030 |
| 43 | /** |
no outgoing calls
no test coverage detected