-
Notifications
You must be signed in to change notification settings - Fork 212
Add exports for individual Rollbar components #1286
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enables individual Rollbar component imports by adding component-specific exports to package.json, addressing TypeScript compatibility issues. It provides modular access to Rollbar's core functionality and validates the implementation through comprehensive examples.
- Add package.json exports for 8 individual Rollbar components (core, telemetry, wrapGlobals, scrub, etc.)
- Create three example projects demonstrating component-based imports in React (JS/TS) and Node.js environments
- Validate component import functionality through working example implementations
Reviewed Changes
Copilot reviewed 35 out of 44 changed files in this pull request and generated 4 comments.
File | Description |
---|---|
package.json | Adds component-specific export definitions for browser/core, telemetry, and other Rollbar modules |
examples/react-ts-components/* | TypeScript React example demonstrating component imports with proper typing |
examples/react-js-components/* | JavaScript React example validating component import functionality |
examples/node-components/* | Node.js example testing component imports in server-side environment |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for esm. Approved with cjs support to come in a follow up PR.
Description of the change
This PR enables individual Rollbar component imports by adding component-specific exports to
package.json
, addressing TypeScript compatibility issues. It provides modular access to Rollbar's core functionality and validates the implementation through comprehensive examples.package.json
exports
for 8 individual Rollbar components (core, telemetry, wrapGlobals, scrub, etc.)Type of change
Related issues