Skip to content

fix: use static strings in require to prevent bundle issues#186

Closed
kricsleo wants to merge 1 commit intotursodatabase:mainfrom
kricsleo:fix/static-require
Closed

fix: use static strings in require to prevent bundle issues#186
kricsleo wants to merge 1 commit intotursodatabase:mainfrom
kricsleo:fix/static-require

Conversation

@kricsleo
Copy link
Copy Markdown

resolves #185

This PR changes the require from dynamic variables to static strings to avoid bundle issues.

It shouldn't affect runtime behavior, so it should be safe to merge ❤️

@penberg
Copy link
Copy Markdown
Contributor

penberg commented Jun 13, 2025

PR obsoleted by #182. I wonder if napi-rs packaging already solves this?

@penberg penberg closed this Jun 13, 2025
@kricsleo
Copy link
Copy Markdown
Author

I wonder if napi-rs packaging already solves this?

Yes, since all require(...) calls use static strings (e.g., require('libsql-android-arm64')), this issue is resolved 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dynamic variables in require prevents correct dependency analysis

2 participants