Skip to content

build: Add node export for better compatibility - #6716

Closed
mydea wants to merge 199 commits into
vercel:mainfrom
mydea:fn/reorder-exports
Closed

build: Add node export for better compatibility#6716
mydea wants to merge 199 commits into
vercel:mainfrom
mydea:fn/reorder-exports

Conversation

@mydea

@mydea mydea commented Jun 11, 2025

Copy link
Copy Markdown

Background

On Next.js, we noticed that instrumentation via import-in-the-middle of this package was not working. After some deep debugging, I figured out that the problem seems to be that it keeps picking up the .mjs variant in Next.js, although Next itself is cjs. That seems to mess with import-in-the-middle (or actually require-in-the-middle, I suppose).

The only way to fix this and get it to load the cjs correctly in Next.js was to add a node variant export.

Summary

Added a node variant export that points to the cjs outout.

dylanmoz and others added 30 commits April 3, 2025 08:10
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…nge (vercel#5531)

Co-authored-by: Carl Brugger <cebrugg@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…#5541)

Co-authored-by: Bram Meerten <bram.meerten@acagroup.be>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
)

Co-authored-by: Sam Denty <sam@samdenty.com>
Co-authored-by: Sam Denty <samddenty@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@gr2m gr2m removed provider/openai Issues related to the @ai-sdk/openai provider provider/anthropic Issues related to the @ai-sdk/anthropic provider provider/azure Issues related to the @ai-sdk/azure provider provider/openai-compatible Issues related to the @ai-sdk/openai-compatible provider provider/xai Issues related to the @ai-sdk/xai provider provider/amazon-bedrock Issues related to the @ai-sdk/amazon-bedrock provider provider/assemblyai Issues related to the @ai-sdk/assemblyai provider provider/cerebras Issues related to the @ai-sdk/cerebras provider provider/cohere Issues related to the @ai-sdk/cohere provider provider/deepgram Issues related to the @ai-sdk/deepgram provider provider/deepinfra Issues related to the @ai-sdk/deepinfra provider provider/deepseek Issues related to the @ai-sdk/deepseek provider provider/elevenlabs Issues related to the @ai-sdk/elevenlabs provider provider/fal Issues related to the @ai-sdk/fal provider provider/fireworks Issues related to the @ai-sdk/fireworks provider provider/gladia Issues related to the @ai-sdk/gladia provider provider/google-vertex Issues related to the @ai-sdk/google-vertex provider provider/groq Issues related to the @ai-sdk/groq provider provider/hume Issues related to the @ai-sdk/hume provider provider/lmnt Issues related to the @ai-sdk/lmnt provider provider/luma Issues related to the @ai-sdk/luma provider provider/mistral Issues related to the @ai-sdk/mistral provider provider/perplexity Issues related to the @ai-sdk/perplexity provider provider/replicate Issues related to the @ai-sdk/replicate provider provider/revai Issues related to the @ai-sdk/revai provider provider/togetherai Issues related to the @ai-sdk/togetherai provider provider/vercel Issues related to the @ai-sdk/vercel provider labels Nov 7, 2025
@gr2m

gr2m commented Nov 7, 2025

Copy link
Copy Markdown
Collaborator

Sorry, we didn't get to this in time. Please re-create the PR if the change is still needed and we'll take a look! This comment is automated as part of our triage process. Truly sorry for the inconvenieince, we are doing our best 🖤

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.