Babel and Webpack in 2020 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Babel and Webpack in 2020

I'm quite new at this so I'm wondering if nowadays is worth to add Babel and Webpack on a website like it's shown on a lot of tutorials and courses. Thanks

30th Aug 2020, 1:27 PM
Marcel
Marcel - avatar
1 Answer
+ 2
Babel and Webpack are mostly used at development time (I guess). What Babel does is, it converts your modern JavaScript code to ES5 so that it can support older browsers as well. And Webpack is kind of a bundler that takes all you Javascript code and bundles it up in one file. And yes, it is still worth it to use them.
31st Aug 2020, 11:22 AM
Raj Chhatrala
Raj Chhatrala - avatar