Skip to content

Conversation

ahmedriad1
Copy link
Member

No description provided.

hkamran2 and others added 2 commits February 21, 2025 07:38
The humps library provides uses default exports to export it's functionality.

This becomes a problem for ESM bundling as tsup just includes the following line in the bundle:

import { camelizeKeys, decamelize, decamelizeKeys } from 'humps';

Running in ESM mode causes failures because named exports are not present in the humps module.
Fix: Use default exports for humps library
Copy link

vercel bot commented Feb 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 23, 2025 2:18pm

@ahmedriad1 ahmedriad1 merged commit 02ea139 into master Feb 23, 2025
6 checks passed
Copy link
Contributor

size-limit report 📦

Path Size
dist/index.min.js 3.67 KB (0%)
dist/index.min.mjs 3.76 KB (0%)
dist/index.umd.min.js 4.08 KB (0%)

Copy link
Contributor

🎉 This PR is included in version 1.7.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

basit3407 pushed a commit to basit3407/api-js that referenced this pull request Oct 20, 2025
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