Skip to content

Conversation

@timfish
Copy link
Contributor

@timfish timfish commented Sep 25, 2025

This PR changed the ESM code to use createRequire to load the CJS hook:

@vercel/nft is used by some frameworks to determine which dependency files should be included in production without doing any bundling.

Unfortunately it looks like their support for createRequire requires that it is accessed on a variable called module:

@timfish
Copy link
Contributor Author

timfish commented Sep 25, 2025

Ok @vercel/nft is a mess and this on it's own doesn't fix it 😭

@timfish timfish closed this Sep 25, 2025
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.

1 participant