Skip to content

Conversation

hntrl
Copy link
Member

@hntrl hntrl commented Sep 1, 2025

continuation of #8820

LangChain Package Fix and others added 3 commits August 31, 2025 21:37
- Add src/index.ts entry point with clear documentation
- Add root '.' export to exports field for bundler compatibility
- Keep main/types fields for maximum legacy tool compatibility
- Document that root import should be avoided in favor of subpaths

The new index.ts includes comprehensive comments explaining:
- Its purpose (bundler compatibility only)
- Best practices (use subpath imports)
- Examples of correct vs incorrect usage

Fixes static manualChunks resolution in bundlers like Vite, Rollup, and Webpack
while maintaining the intended subpath-only usage pattern and full backwards compatibility.
Copy link

vercel bot commented Sep 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
langchainjs-docs Ready Ready Preview Comment Sep 1, 2025 4:58am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
langchainjs-api-refs Ignored Ignored Sep 1, 2025 4:58am

@hntrl hntrl merged commit 7c60901 into main Sep 1, 2025
40 checks passed
@hntrl hntrl deleted the hunter/fix/langchain-core-package-exports branch September 1, 2025 05:00
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