opensource-nepal / node-nepali-datetime

A Node project designed to support native JavaScript-like features for Nepali date and times. It includes features such as 'NepaliDate' for Nepali date support and 'dateConverter' for date conversions.
GNU General Public License v3.0
63 stars 18 forks source link

Change tooling for build #55

Closed rubiin closed 1 year ago

rubiin commented 1 year ago

Use Case Please describe the specific use case or scenario where this feature would be beneficial. Right now , we are using rollup directly for building the file , I suggest we should go for something like https://github.com/unjs/unbuild that uses rollup and provides a level of abstraction

Proposed Solution This will greatly improve DX for maintainers and collaboraters. Compare the setup file for plain rollup (~38lines)

vs

Setup file for unbuild (~17lines)

Also with unbuild you don't need to install external rollup plugins for compilations as most cases are handled by default.

Alternative Considered https://github.com/egoist/tsup is also a great alternative

Dependencies If this feature has any dependencies or requirements, please list them here.

Additional context Add any other context or screenshots about the feature request here.