BackendStack21 / restana

Restana is a lightweight and fast Node.js framework for building RESTful APIs.
MIT License
467 stars 27 forks source link

Reduce bundle size with SWC #117

Open tripodsgames opened 1 year ago

tripodsgames commented 1 year ago

Hello, I conducted some tests using SWC to reduce the file sizes and potentially improve the performance of this library.

Changes:

I would like to discuss the changes.

jkyberneees commented 1 year ago

Hi @tripodsgames, thanks for contributing to the project. What is the size reduction and performance improvements you are actually realizing after this minification step? Can you elaborate with data points here?

My main concern is how it might impact developers used to reading the code before use. Looking forward to more details from you.

Regards

tripodsgames commented 1 year ago

About the readability of the code, I believe this is not a problem, the code in the repository will still be the same, only the code published in NPM will be different.

About the data, I will collect them and publish them here.