[PR #5471] [CLOSED] [rolldown bug]: Error: Panic in async function #31625

Closed
opened 2026-04-17 22:31:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5471
Author: @himself65
Created: 10/21/2025
Status: Closed

Base: canaryHead: himself65/2025/10/21/lazy


📝 Commits (1)

  • 19a8b55 pref: lazy import create adapter

📊 Changes

2 files changed (+6 additions, -5 deletions)

View changed files

📝 packages/better-auth/src/db/utils.ts (+4 -3)
📝 packages/better-auth/src/init.ts (+2 -2)

📄 Description

Summary by cubic

Lazy-loads database adapters so we only import Kysely/memory backends when needed, reducing startup cost and bundle size. Also simplifies init imports.

  • Refactors
    • Switched to dynamic imports in getAdapter for memoryAdapter, createKyselyAdapter, and kyselyAdapter.
    • Kept MemoryDB as a type-only import.
    • Updated init imports: use ./crypto for password helpers and ./db for getAdapter.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5471 **Author:** [@himself65](https://github.com/himself65) **Created:** 10/21/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `himself65/2025/10/21/lazy` --- ### 📝 Commits (1) - [`19a8b55`](https://github.com/better-auth/better-auth/commit/19a8b55050eb0230443f05372ef11effe176ac36) pref: lazy import create adapter ### 📊 Changes **2 files changed** (+6 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/db/utils.ts` (+4 -3) 📝 `packages/better-auth/src/init.ts` (+2 -2) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Lazy-loads database adapters so we only import Kysely/memory backends when needed, reducing startup cost and bundle size. Also simplifies init imports. - **Refactors** - Switched to dynamic imports in getAdapter for memoryAdapter, createKyselyAdapter, and kyselyAdapter. - Kept MemoryDB as a type-only import. - Updated init imports: use ./crypto for password helpers and ./db for getAdapter. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 22:31:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#31625