Vanilla GatsbyV5 takes ~1 minute to build #37310
DavidSabine
started this conversation in
Community
Replies: 1 comment 1 reply
-
Thanks for sharing your feedback. Improving time to develop is a metric we track and do look to improve on. The major upgrade from v4 to v5 actually saw a reduction of ~10 seconds by our metrics, so this isn't a problem specific to the recent major release. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Preliminary Checks
Description
Gatsby V5, out of the box, takes ~1 minute to build.
gatsby develop
time-to-interaction is ~1 minute.This is an issue.
Reproduction Link
https://github.com/DavidSabine/gatsby5-build-time
Steps to Reproduce
npm init
npm install gatsby --save-dev
gatsby develop
⌚
Expected Result
I expect time-to-interaction is comparable to other SSR frameworks: Vitepress? Svelte? Nextjs?
Actual Result
Time-to-interaction is ~1 minute. That's before adding any content or images.
Given that Vite builds comparable site in milliseconds, it's time Gatsbyjs take a new look at developer experience.
Gatsbyjs in 2018 was amazing: hot-reloading, image processing, well-documented APIs. Putting up with 1-2minutes when running
npm run develop
was an easy trade-off.Gatsbyjs entering 2023 is a different story. The productivity gains offered by Vite, Vitest (compared to Webpack, Jest) are significant. It's difficult to justify starting new projects with Gatsby.
Environment
Config Flags
none
Beta Was this translation helpful? Give feedback.
All reactions