Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(js/openinference-core): Port build process to vite, advertise esm builds #1150

Closed

Conversation

cephalization
Copy link
Contributor

Build processes converted to vite/rollup to facilitate extension/import rewriting:

  • openinference-core
  • openinference-instrumentation-openai
  • openinference-instrumentation-langchain
  • openinference-semantic-conventions
  • openinference-vercel

New distributables tested:

  • openinference-core
  • openinference-instrumentation-openai
  • openinference-instrumentation-langchain
  • openinference-semantic-conventions
  • openinference-vercel

Comment on lines +44 to +46
// make sure to externalize deps that shouldn't be bundled
// into your library
external: ["@opentelemetry/api", "@opentelemetry/core"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ugh, can this be done via peerDeps?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not automatically, no. From what I understand the best we could do is to import package.json and walk the peerDependencies deps, adding them to this config.

vitejs/vite#6780

@cephalization
Copy link
Contributor Author

This isn't the right approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants