Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Override the default import for supported edge runtimes #65

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Conversation

honzasp
Copy link
Contributor

@honzasp honzasp commented Jul 17, 2023

The default import had included the Node.js-specific local sqlite3 client, so all developers on platforms other than Node.js needed to use a subpackage import such as @libsql/client/web.

This PR adds conditional imports to package.json that should allow the default import @libsql/client to work as @libsql/client/web in the edge runtimes that we support.

Fixes #55

The default import had included the Node.js-specific local sqlite3
client, so all developers on platforms other than Node.js needed to use
a subpackage import such as `@libsql/client/web`.

This commit adds conditional imports to package.json that should allow
the default import `@libsql/client` to work as `@libsql/client/web` in
the edge runtimes that we support.
@honzasp honzasp requested a review from CodingDoug July 17, 2023 14:48
@honzasp honzasp merged commit e863f45 into main Jul 18, 2023
@honzasp honzasp deleted the runtime-key branch July 18, 2023 10:45
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Respect proper key runtime
2 participants