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
Uh oh!
There was an error while loading. Please reload this page.
-
Preliminary Checks
Description
Gatsby V5, out of the box, takes ~1 minute to build.
gatsby developtime-to-interaction is ~1 minute.This is an issue.
Reproduction Link
https://github.com/DavidSabine/gatsby5-build-time
Steps to Reproduce
npm initnpm install gatsby --save-devgatsby 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 developwas 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
System: OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish) CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz Shell: 5.1.16 - /bin/bash Binaries: Node: 18.12.1 - ~/.asdf/installs/nodejs/18.12.1/bin/node Yarn: 1.22.19 - /mnt/c/Program Files/nodejs/yarn npm: 8.19.2 - ~/.asdf/plugins/nodejs/shims/npm npmPackages: gatsby: 5.3.2 => 5.3.2 npmGlobalPackages: gatsby-cli: 5.3.1Config Flags
none
Beta Was this translation helpful? Give feedback.
All reactions