(e: unknown)
| 564 | |
| 565 | // what the precompiler throws to say what it can't build, not a crash |
| 566 | export const isBuildError = (e: unknown): e is Error => |
| 567 | e instanceof Error && (e.name === "Error" || e.name === "ParseError") |
| 568 | |
| 569 | // a bundler prints an error's stack, which would show the precompiler's frames |
| 570 | export const rethrowAsBuildError = (e: unknown): never => { |
no outgoing calls
no test coverage detected