Skip to content

Migrate to Solid.js #3

@bogdan0083

Description

@bogdan0083

React is awesome but for such a small app it unecessarilly brings too much bundle size:

Page                                       Size     First Load JS
┌ ○ /                                      6.93 kB         153 kB
├   /_app                                  0 B             111 kB
├ λ /[owner]                               900 B           139 kB
├ λ /[owner]/[name]/[[...path]]            8.15 kB         146 kB
├   └ css/1ccd81fe729d036c.css             161 B
├ ○ /404                                   194 B           111 kB
└ ○ /search                                879 B           147 kB
+ First Load JS shared by all              111 kB
  ├ chunks/framework-b3ca2e9a9574e304.js   45.3 kB
  ├ chunks/main-f6b294c3694ee67c.js        30.8 kB
  ├ chunks/pages/_app-70d2b84c4cd92528.js  33 kB
  ├ chunks/webpack-f1fd700bb0f7f4e2.js     2.11 kB
  └ css/adbfee4439fcc337.css               4.19 kB

λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
○  (Static)  automatically rendered as static HTML (uses no initial props)

See the Load JS size? It brings 111 kB of data without any libraries.

I understand that Next.js can also be optimized but I think that reactivity without VDOM is something worth exploring in future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions