Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webpack vs Parcel

What is advantage and disadvantage between webpack and parcel

enter image description here

Webpack:

https://webpack.js.org

Parcel:

https://parceljs.org

like image 914
Sivaraj-v Avatar asked Jul 21 '18 06:07

Sivaraj-v


People also ask

What is the difference between webpack and rollup?

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.

Is webpack still popular?

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.

Is Parcel A bundler?

Parcel is a web application bundler, differentiated by its developer experience. It offers blazing fast performance utilizing multicore processing, and requires zero configuration.

Does parcel use Babel?

Parcel currently uses Babel to strip flow types. If you have a custom Babel config, you will need to add the Flow plugin yourself.


1 Answers

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.

like image 63
PlayMa256 Avatar answered Oct 29 '22 05:10

PlayMa256