Skip to content

chore: update package to smaller bundle size#143

Merged
imrishabh18 merged 1 commit intomainfrom
feat/schematic
Oct 7, 2024
Merged

chore: update package to smaller bundle size#143
imrishabh18 merged 1 commit intomainfrom
feat/schematic

Conversation

@imrishabh18
Copy link
Copy Markdown
Member

No description provided.

@tscircuitbot
Copy link
Copy Markdown
Contributor

Size Report

Bundle Size

  • Base branch size: 344K
  • PR branch size: 344K
  • Difference: 0

Install Size

  • Base branch size: 7.93mb
  • PR branch size: 5.56mb
  • Difference: -2.37

Full Howfat Output (PR Branch)

@tscircuit/core@0.0.104 (22 deps, 5.56mb, 625 files, ©undefined)
╭─────────────────────────────────────────┬──────────────┬──────────┬───────┬───────────┬──────────────┬───────────╮
│ Name                                    │ Dependencies │     Size │ Files │ Native    │ License      │ Deprec    │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ @lume/kiwi@0.4.4                        │              │  121.6kb │    31 │           │ BSD-3-Clause │           │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/footprinter@0.0.66           │            2 │  858.3kb │    71 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/infgrid-ijump-astar@0.0.21   │              │ 241.24kb │    14 │           │              │           │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/math-utils@0.0.4             │              │   20.4kb │    21 │           │              │           │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/props@0.0.68                 │              │ 446.02kb │    31 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ @tscircuit/soup-util@0.0.32             │            1 │ 273.54kb │    31 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ circuit-json-to-connectivity-map@0.0.17 │            1 │  54.54kb │    27 │           │              │           │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ circuit-json@0.0.83                     │            2 │   1.07mb │    66 │           │ ISC          │           │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ nanoid@5.0.7                            │              │  10.69kb │    11 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ performance-now@2.1.0                   │              │  11.08kb │    17 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ react-reconciler@0.29.2                 │            5 │   1.07mb │    56 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ react@18.3.1                            │            2 │ 331.04kb │    33 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ schematic-symbols@0.0.32                │              │ 263.15kb │    58 │           │              │           │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ transformation-matrix@2.16.1            │              │ 430.45kb │    56 │           │ MIT          │           │
├─────────────────────────────────────────┼──────────────┼──────────┼───────┼───────────┼──────────────┼───────────┤
│ zod@3.23.8                              │              │ 651.16kb │    50 │           │ MIT          │           │
╰─────────────────────────────────────────┴──────────────┴──────────┴───────┴───────────┴──────────────┴───────────╯

@imrishabh18
Copy link
Copy Markdown
Member Author

@seveibar Damn this is nice! The soup-util was having unused bun/types package

@imrishabh18
Copy link
Copy Markdown
Member Author

imrishabh18 commented Oct 7, 2024

Looking in circuit-json if I can find something to reduce

@imrishabh18 imrishabh18 merged commit a97949a into main Oct 7, 2024
@seveibar
Copy link
Copy Markdown
Contributor

seveibar commented Oct 7, 2024

Very nice, still suspiciously high # of files for soup-util (i think there should only be dist/index.js) but looking good!!

@imrishabh18
Copy link
Copy Markdown
Member Author

There is only one index.js file

Screenshot 2024-10-08 at 12 23 23 AM

@seveibar
Copy link
Copy Markdown
Contributor

seveibar commented Oct 7, 2024

Why does the bundle size analysis show 31 files?

@seveibar
Copy link
Copy Markdown
Contributor

seveibar commented Oct 7, 2024

Im actually not sure. Maybe not an issue

@imrishabh18
Copy link
Copy Markdown
Member Author

Even I am not sure, most of the packages are just only the index.js in the dist folder but still the bundle analysis is showing a lot of files

Screenshot 2024-10-08 at 12 28 56 AM

bimakw pushed a commit to bimakw/core that referenced this pull request Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants