Commit 6123ea1
committed
perf(external): minimize exports to reduce bundle size
Optimize external module exports to only include what we actually use:
- fast-sort: export { createNewSortInstance } only
- Was: full module (~56 KB source)
- Now: 2.1 KB bundle (96% reduction)
- fast-glob: export { globStream } only
- Was: full module (~260 KB source)
- Now: 82 KB bundle (68% reduction)
- del: export { deleteAsync, deleteSync } only
- Was: full module
- Now: 100 KB bundle (includes trash/globby deps)
- streaming-iterables: export { parallelMap, transform } only
- Was: full module (~168 KB source)
- Now: 11 KB bundle (93% reduction)
Total estimated savings: ~211 KB from fast-sort and streaming-iterables
alone, plus enables better tree-shaking for consumers.
Pattern established for future external module additions.1 parent d842719 commit 6123ea1
File tree
4 files changed
+27
-4
lines changed- src/external
4 files changed
+27
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments