Open michal-ciechan opened 3 years ago
Snowpack is also pretty slow for us. I had assumed that was 'just how things are', but perhaps not!
Here's our Chakra codebase that's compiled by Snowpack: https://github.com/clowdr-app/clowdr/tree/main/frontend
(I'm currently doing some changes to bring Snowpack up to date and improve our monorepo structure, so the Snowpack config will likely change in the near future)
Thanks for filing. Weβre working on some improvements to esinstall
(the package that does all the preparation that takes so long) that should speed this up drastically.
Sounds good! I've been looking at Vite recently too and the pure-esbuild
dev pipeline seems like a good direction to be going in.
We currently migrated to Vite for instant start-up's, biggest downside is lack of TS errors in browser, the old app just keeps running π definitely willing to go back to snowpack if the start-up is quick (e.g. sub 2 seconds). Just impossible to use with a 90 second start-up π’
Thanks for your patience. In the recent snowpack@3.8.7
release, startup times across the board have improved. Iβm seeing ~15 second cold start on my machine for @chakra-ui/react
and all deps, with subsequent startups being instant, of course.
Quick checklist
What package manager are you using?
npm
What operating system are you using?
Windows
Describe the bug
snowpack dev
takes 90 seconds when warmed up. (42 in the below demo app).This is reproducible on 2 separate people and machines.
Guessing this is more of the way
Chakra
is organised, but would consider this a bug considering it takes so long, and the output saysserver started in 38ms
. Feel like I've been lied to!Steps to reproduce
npx create-snowpack-app
using template @snowpack/app-template-react-typescriptnpm i @chakra-ui/react @emotion/react@^11 @emotion/styled@^11 framer-motion@^4
App.tsx
to use chakra:npm start
takes 73s to run cold:Not sure why Snowpack increments hour and minute by 1 π π€·ββοΈ
npm start
again (warm) takes 42 seconds. In our actual project takes about 90 seconds, as we have a plethora of other packages installed)This is on a decentish speced laptop (albeit 2/3 years old)
Link to minimal reproducible example (optional)
michal-ciechan/snowpack-chakra-slow-test: Example of snowpack slowness with chakra