-
-
Notifications
You must be signed in to change notification settings - Fork 695
Make better-sqlite3
an optional dependency
#3346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sounds good to me, on top of updating the documentation, I think it would be nice to try to require it when needed and throw a good error message, see how I implemented it for puppeteer on NuxtHub module. |
linked to #3329 ? |
FWW: Making |
Bumping this for deno support. Related to this issue with how
|
Environment
@nuxt/content
version: 3.5.1Description
When installing
@nuxt/content
inside a Bun Docker image (ARM64, Linux), thebetter-sqlite3
native module fails to build due to missing Python and a V8 symbol mismatch:But Bun already provides built-in SQLite support, so requiring
better-sqlite3
as a hard dependency blocks Bun users or those without a full C++/Python toolchain.Proposed solution
better-sqlite3
from"dependencies"
into"optionalDependencies"
inpackage.json
.better-sqlite3
is only required for environments without native SQLite support.I’d be happy to open a PR to implement this change if the proposed solution looks good!
The text was updated successfully, but these errors were encountered: