What is advantage and disadvantage between webpack and parcel
Webpack:
https://webpack.js.org
Parcel:
https://parceljs.org
There is a slight difference between rollup and webpack config file. Rollup has node polyfills for import/export, whereas webpack doesn't. Rollup has support for relative paths, whereas webpack does not, so we either use path. resolve or path.
Loved by many, hated by some, known to all. And still the most popular bundler in 2021. With more than 15 million weekly downloads (at the time of writing this post), there's no doubt that Webpack is still the bundler par excellence in 2021.
Parcel is a web application bundler, differentiated by its developer experience. It offers blazing fast performance utilizing multicore processing, and requires zero configuration.
Parcel currently uses Babel to strip flow types. If you have a custom Babel config, you will need to add the Flow plugin yourself.
If you don't want to worry about configuring everything and your needs are common needs, you should go directly with parcel. Parcel provides defaults (for babel-preset-env, post-css, html, etc) that fits most scenarios and works for everybody. You don't have to worry about configuring anything.
From the other hand, if you need a more customization, you should go with webpack. Keep in mind that you will have to setup everything that you need, explicitly set those things.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With