4 ms·
I'm used to Svelte, and I remember last year when I tried to install a basic NextJS starter template (create-nextjs-app) I had to wait a minute or so for all th
by gnrlst 3y ago
I'm used to Svelte, and I remember last year when I tried to install a basic NextJS starter template (create-nextjs-app) I had to wait a minute or so for all the npm dependencies to install. I then checked my project folder and it was 600MB....mindblowingly bloated.
- imachine1980_ 3y agoyea but this more like install react more than nextjs, nextjs do to much magic to be comparable 600 mb is insane anyway but is important to be clear then we are comparing different things
- ComputerGuru 3y agoWould SvelteKit be a better comparison then?
- bdcravens 3y agoCreating a skeleton SvelteKit app was around 150mb.
- paulddraper 3y agoTo be fair, react is < 0.5MB. create-nextjs-app is installing React, React Router, Webpack, Tailwind, ESLint, Jest, etc. create-nextjs-app is by design an "everything and the kitchen sink" approach.
- ssijak 3y agoand totally irrelevant. how is having 600mb of dependencies making your life so much harder compared to time savings and developer experience Nextjs provides
- gnrlst 3y agoI wouldn't say it's totally irrelevant...it translates to slow dev builds, slow dev startup, etc. Especially considering SvelteKit may be ~150 mb, but npm i is a couple seconds and npm run dev is basically instant. I'm biased because I'm allergic to React and anything JSX touches, including NextJS, so in all honesty I wouldn't use it if it was 1kb.