Skip to content

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
rahul-vyas-dev:main
Mar 9, 2026
Merged

feat:Add Rollup build system for packaging, transpilation, and distribution of the component library#7
rahul-vyas-dev merged 1 commit intoAOSSIE-Org:mainfrom
rahul-vyas-dev:main

Conversation

@rahul-vyas-dev
Copy link
Contributor

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

  • My code follows the project's code style and conventions
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have joined the Discord server and I will share a link to this PR with the project maintainers there
  • I have read the Contributing Guidelines

⚠️ AI Notice - Important!

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.

…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.
@github-actions github-actions bot added no-issue-linked PR is not linked to any issue configuration Configuration file changes dependencies Dependency file changes frontend Changes to frontend code javascript JavaScript/TypeScript code changes size/XL Extra large PR (>500 lines changed) repeat-contributor PR from an external contributor who already had PRs merged pending-coderabbit-review labels Mar 9, 2026
@rahul-vyas-dev rahul-vyas-dev merged commit e8d59e1 into AOSSIE-Org:main Mar 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

configuration Configuration file changes dependencies Dependency file changes frontend Changes to frontend code javascript JavaScript/TypeScript code changes no-issue-linked PR is not linked to any issue pending-coderabbit-review repeat-contributor PR from an external contributor who already had PRs merged size/XL Extra large PR (>500 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant