(code: string)
| 59 | * attached, in development or anywhere else. |
| 60 | */ |
| 61 | export const stackFor = ( |
| 62 | code: string, |
| 63 | error: unknown, |
| 64 | isDevelopment: boolean |
| 65 | ): string | undefined => |
| 66 | isDevelopment && !isFrameworkCode(code) && error instanceof Error |
| 67 | ? error.stack |
| 68 | : undefined; |