Skip to content

Reland ESM fix #540

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

Merged
merged 2 commits into from
Jun 25, 2024
Merged

Reland ESM fix #540

merged 2 commits into from
Jun 25, 2024

Conversation

lucacasonato
Copy link
Contributor

@lucacasonato lucacasonato commented May 27, 2024

Relanding 6ac04ff, but fixed to support this usecase:

import * as ns from "@supabase/postgrest-js"

new ns.PostgrestClient()

soedirgo and others added 2 commits June 25, 2024 14:13
Support CommonJS & ESM. Previously the ESM build (dist/module) is broken - it's
recognized as CommonJS.

For more on dual-packaging: https://nodejs.org/api/packages.html#dual-commonjses-module-packages
Copy link
Member

@soedirgo soedirgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Works on Supabase Edge Functions 💯

@soedirgo soedirgo merged commit 541cd5d into supabase:master Jun 25, 2024
1 check passed
Copy link

🎉 This PR is included in version 1.15.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants