Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] Improve the build process and size with TypeScript #134

Open
niloysikdar opened this issue Jan 14, 2023 · 0 comments
Open

[Build] Improve the build process and size with TypeScript #134

niloysikdar opened this issue Jan 14, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@niloysikdar
Copy link
Member

niloysikdar commented Jan 14, 2023

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 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.

CC @agentmilindu

@niloysikdar niloysikdar added enhancement New feature or request help wanted Extra attention is needed labels Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant