Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove SSG exports from bundles #17

Merged
merged 5 commits into from
Oct 3, 2020
Merged

Conversation

lucacasonato
Copy link
Owner

getStaticData and getStaticPaths are now not included in the client bundles anymore.

main:

Page                           Size     First Load JS
┌ ● /                          232 B    5.95 kB      
├ ○ /dynamic/:name             175 B    5.89 kB      
└ ● /user/:name                286 B    6 kB         
                                                     
+ First Load JS shared by all  5.72 kB               
  ├ /main-e304fa6e.js          2.22 kB               
  └ /preact-5e05c32a.js        3.5 kB                

○  (Static)  automatically rendered as static HTML
●  (SSG)     automatically generated as static HTML + JSON (uses getStaticData)

this PR:

Page                           Size     First Load JS
┌ ● /                          189 B    5.9 kB       
├ ○ /dynamic/:name             175 B    5.89 kB      
└ ● /user/:name                189 B    5.9 kB       
                                                     
+ First Load JS shared by all  5.71 kB               
  ├ /main-3437414c.js          2.22 kB               
  └ /preact-5e05c32a.js        3.5 kB                

○  (Static)  automatically rendered as static HTML
●  (SSG)     automatically generated as static HTML + JSON (uses getStaticData)

File sizes are measured after brotli compression.

@lucacasonato lucacasonato merged commit 40374dc into main Oct 3, 2020
@lucacasonato lucacasonato deleted the reduce_bundle_size branch October 3, 2020 00:36
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.

1 participant