Open
Description
Description:
- The current build process has so many faults which can be improved.
- We need to find some techniques and ways to improve the overall build process and size
Reference:
The few points on which we need to work on:
-
Build Size
- The current build and bundling process has some issues which can be improved. Right now, we are generating TypeScript types for both the
esm
andcjs
versions separately, which are basically both identical. So instead of generating thetypes
separately, we can put it into one single folder and map the directory in thepackage.json
.
- The current build and bundling process has some issues which can be improved. Right now, we are generating TypeScript types for both the
-
Minify and splitting the Output
- The build output currently isn't in the minified format. We can minify that to reduce the actual package size. We can also use code splitting while building our package. We can use some modern bundler and build tool for this process (example: esbuild, tsup, tsdx)
Outcome:
- Optimizations and improvements of the package compared to the previous version.