feat:Add Rollup build system for packaging, transpilation, and distribution of the component library#7
Merged
rahul-vyas-dev merged 1 commit intoAOSSIE-Org:mainfrom Mar 9, 2026
Conversation
…tion - Enhanced package.json with additional keywords and updated main/module entries for better compatibility. - Added rollup.config.js for building the library in ESM, CJS, and UMD formats with support for TypeScript and PostCSS. - Updated SupportUsButton component styles for improved layout and spacing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces a Rollup-based build pipeline to properly bundle and prepare the package for npm distribution. The configuration compiles the source code into optimized outputs that can be consumed across different JavaScript environments and bundlers.
Key Changes
Added a Rollup configuration to bundle the library source code.
Generated ESM and CommonJS builds for broader compatibility.
Configured external dependencies to prevent unnecessary bundling and reduce package size.
Structured the build output into a dedicated dist/ directory for clean distribution.
Impact
This establishes a production-ready build system for the package, ensuring that the published artifact is optimized, portable, and compatible with modern frontend tooling while providing a solid foundation for future build improvements.
Checklist
We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact.