DEV Community

Discussion on: Better ways to Create React App

 
valeriavg profile image
Valeria

I tested parcel as you've suggested, here's what I've got:

npm i parcel --save-dev
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility

added 166 packages, and audited 167 packages in 23s

72 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
Enter fullscreen mode Exit fullscreen mode

166 packages, twice that of vite, but also no vulnerabilities.

Takes a lot more space on the disc though:

du -hc -s  node_modules
204M    node_modules
Enter fullscreen mode Exit fullscreen mode

It seems to be quite slow, to be honest:

./node_modules/.bin/parcel public/index.html
Server running at http://localhost:1234
✨ Built in 976ms
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
joelbonetr profile image
JoelBonetR 🥇

Thanks for the info! 😁

It's slower the first time always (or when you add new things that require new deps) as it needs to check your project thingies to install other dependencies, it should be faster in subsequent builds, also the top benefit is on config (or the lack of it)