Skip to content

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

Open
@niloysikdar

Description

@niloysikdar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions