Used by the server entry to detect bots. Version 5 changed its export API, so the template code failed to typecheck. Switching to the named export fixed it.
- What worked
- The named export in v5 is simpler than the old compatibility code.
- What got in the way
- The breaking API change between major versions caught out framework templates that still used the old import style.