You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and cjs versions separately, which are basically both identical. So instead of generating the types separately, we can put it into one single folder and map the directory in the package.json.
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.
Description:
Reference:
The few points on which we need to work on:
Build Size
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
.Minify and splitting the Output
Outcome:
CC @agentmilindu
The text was updated successfully, but these errors were encountered: