Skip to content

Conversation

@ralexmatthews
Copy link
Contributor

@ralexmatthews ralexmatthews commented Apr 14, 2025

Description

This adds an ESM build alongside a CJS build, so projects that are not CJS or are "type": "module" can use the project now.

I believe this should fix #446

Testing

I made a separate Next.js 15 app and tried to install and use the project. I confirmed that it did not work. After these changes, it started working.

Pull Request Type

Please select the option(s) that are relevant to this PR.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement (fixing a typo, updating readme, renaming a variable name, etc)

@ralexmatthews ralexmatthews requested a review from a team as a code owner April 14, 2025 17:48
@ralexmatthews ralexmatthews merged commit 5f93b9d into master Apr 14, 2025
13 checks passed
@ralexmatthews ralexmatthews deleted the esm-fixes branch April 14, 2025 18:03
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.

[Bug]: TypeError: api_1.default is not a constructor in Nestjs

3 participants