drizzle-team / drizzle-team/drizzle-orm

[drizzle-kit] Reduce drizzle-kit bundle size

Open
#2,722 2 comments 2 reactions 0 assignees View on GitHub
drizzle/kit improvement performance
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

https://npmgraph.js.org/?q=drizzle-kit#zoom=h&deps=devDependencies

![image](https://github.com/drizzle-team/drizzle-kit-mirror/assets/57632712/3b990c90-0a96-4813-9e86-bc5a751248ed)

for now unpacked size is too much - 8.41 MB

By reducing dependencies and their weight, we will put ourselves on the path to the future of JS, as well as increase the performance of the CLI

Continuation of this issue https://github.com/drizzle-team/drizzle-kit-mirror/issues/485

### `bin.cjs` size analyze

![image](https://github.com/user-attachments/assets/9d3a78db-7c1d-4a64-9902-249bfa4afd97)

How to use [metafile](https://esbuild.github.io/api/#analyze) and [analyze](https://esbuild.github.io/analyze/)

### Optimization list

- https://github.com/drizzle-team/drizzle-orm/pull/2736 blocked by https://github.com/alexeyraspopov/picocolors/pull/55
- https://github.com/drizzle-team/drizzle-orm/pull/2724 merged
- https://github.com/drizzle-team/drizzle-orm/pull/2735 ready to be merged
- https://github.com/drizzle-team/drizzle-orm/pull/2734 ready to be merged
- ready to be merged
- and more SOON...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.