Bunddler


??????????????? ? ????? ?????? ??????????? ? ??????? ??????? ? ?????????? ????????? ????? ? ? ?????????????!


??????????????? ? ????? ??????? ???????? ???????????! ?????? ????????? ????, ??? ????? ?????? ??????? ?? ??????? ??-????. ?????????? ????, ?????????? ????????? ? ????? ?? ?????? ????????? ????, ? ????? ??????? ??????? ? ???????? - ????? ?????????? ? ??? ? ??????!:)


Hey there everyone, my name is And What are bundlers? Bundlers are really fun to learn once you have mastered the tech stack. And the next obvious topic to learn or deep dive are bundlers. They are so much awesome and they are always on the cutting edge. The all hype that you see around Rust and all these languages, all these hypes are actually being implemented in the real world in these bundlers. And they're always evolving. That's why I find them always fascinating because they're always working on, always growing and somet But your obvious question is, what is even a bundler? Don't you worry, I will walk you through about what is a bundler, what it does be What are the most popular ones? What are the pros and cons of it? Where their websites are? W And so many questions around that. I know you're excited because I am also very much for t We have all prepared notes. We are going to have fun Let me take you on to the screen and walk you through with t So before we go and walk you through, first of all, a big shout out to the sponsor of they are now my one of the favorite hosting services, especially for the databases. And they're offering $50 credits. And you can get a little bit more if you check the link in the description below. I will come back on to them in a minute. First of all, let's first address what are the bundlers. So here are our notes, we will talk about the bundlers, what they are. We will understand the pros and cons and one word So we'll talk about Webpack. We'll talk about Parcel. ESBuild. We'll also talk about a combination of ESBuild plus Rollup, w And then we'll have some of the final notes here as well. So a lot of preparation has been done The first obvious t In order to understand what is a bundler, I found that the Webpack is one of the best way to get started, at least to explore what is a bundler. And when you go onto their website, on the very home page, the hero image tells you exactly what a bundler is. You write your JavaScript code in a lot of code files. Even in the React ecosystem, if I just go and look into t You have multiple of these files. There is app. js. There is a header. js. There is some x, y, z, j, s, x. Then there are configuration files and so many of these files. Apart from them, they are static assets. There are assets There are CSS files and a whole bunch of t But as long as you remember, JavaScript doesn't understand 1,000 files of JavaScript. They understand just one or hardly two or three of the files. And t If you notice here, all your JS file or all of your handbrake files, HBS, not handbrake, but it's also one of the there are moustache and handbrake and all of them. There's CJS, SAS. So all of these files, modules, dependency, whatever is there, what a webpack does, it actually bundles them up and try to make it as optimized as possible, not only just optimize as much as backward compatible as it can make. And it doesn't just include the JS file. It also includes your JPEG, your PNGs, your CSS file. And I don't So t So notice here, t And when you bundle it, it not only bundles you, it actually allows you to have some configurations as well. Because not just the bundling happen, a lot of tree shaking happens. Tree shaking simply means the code w It just removes them down. It does a lot of more such t And that's why it is there. Look at the sponsors of webpack, not mine, mine, is Swela, but you can see them. The latest sponsor, the platin T Don't get jealous about the sponsors. Just look at t How valuable t Another beautiful thing about the webpack is their doc They have written it so nicely and especially their concept part. It helped me for the first time when I was working on, especially when I studied the concept of loaders. This is my favorite part of the entire doc They have a lot of plugins and everyt So now we'll talk about some of these. Now that And before moving there, another quick shout out to the sponsor of t So you might have seen a lot of hosting in the past. There are lots of competitions in the hosting ecosystem, but I found that some of the people, if they can get hosting w Absolutely. Give me exactly what I'm going to cost. And t So I'll just walk you through. T And if you look at t js project, Next. js, Nest. js, React, anyt And again, as I mentioned, my favorite part is their database hosting. If I look at the dashboard, I do have a database still up and running. Just costed me $2. I already have $50 in my account. It's already up and running. I can just go ahead and quickly see at what's happening with t So it's pretty nice to have t If you want to have your database, just click on add service. What do you want to add? Database, just click on add. And simply have your own redis. Maybe you're building an application w Just select t And They start with just the $5, but as you add more credits, you can have $34, $65, w And it is that easy to maintain and all of that. Not only that, they also give you the recovery options and point in time, whatever you need, they have they also have t So go ahead, check them out. The link is in the description section. I am using them now in my production as well. The hosting is pretty fantastic. And hope you enjoyed that. Check in the link in the description as well. Now coming back onto the web pack. So what's the web pack? My three bits on the web pack is, it's extremely powerful and customizable. You have to dive deep into the docs of the web pack, but certainly after diving deep into the docs, you can customize everyt You want reshaking to happen, you don't want it to happen. You want some custom plugins to happen, you don't want it to happen. Everyt They have huge, not only huge, I would say they have the And you will see they are being used and industry standard for React Angular. Chances are high that if you are going to work in any company which built the project That is that big. Yes, there's a steep learning curve you have to go through with the doc They call it as configuration hell as well. But it's the knowledge you get at one time and that stays with you forever. It's also slower compared to the most modern one that I'm going to walk you through. It's a bit slower as well. And if you're all worried, if I have to say that, give me that one word what does it mean? If your project is worried about the older browser and has been running really long, the chances are Anybody who comes to maintain it will need some web pack knowledge. Some companies in the early days didn't use any React pre-built modules They used to just configure everyt So chances are The next one is parcel. So obviously, JavaScript ecosystem, you can't keep anyt We have thousands of options and parcel is one of them. Their main That's their selling point. It's a zero configuration. But zero configuration also comes with its own pros and cons. So you notice here, they have the dev server hot reloading. I have written notes. Of course, they are from their website itself, but I have gathered them so that we can save some time. First of all, parcel is super beginner friendly. If you are just getting started, I You just want to deploy some stuff. Then parcel is one of the great option. It doesn't require no configuration at all. It works out of the box. You just plug it in. It does everyt All configuration, optimization. It also has built-in HMR, w That means you don't have to reload and auto-refres You can do that in web pack as well, but there's a plugin for it. You have to configure it. Parcel does it automatically for you. The project actually peaked at one point of time. After that, I didn't saw much of the attention in the parcel community or the ecosystem itself. It'still there in production in a lot of places and it introduces the concept I don't see it much now. Maybe I'm wrong. Maybe I don't have that community where it's going on, but I don't see it much, to be honest. Then comes the hero. And again, one word. Parcel, quick setup. Within And now comes up is the hero, w It is incredibly fast. And sometimes you're gonna see 10 to 100 times faster than web pack. If you look at the web pack, they actually mentioned there's a nice animation. Let me reload t So notice t It's all done. And it is literally that fast. I have tried it. It is actually that good. So about time, 10 copies of 3GS library. They have mentioned t And another t Come on, stop it now. I'm gonna take the whole of the bar. Anyways, another good thing that I So they also didn't shy away from the docs, neither the plugin. They have the concept of speed as well as everyt They have thorough doc Everyt So your first builds and everyt I they give you the exact raw power and teaches you under the hood what's happening in that. So it's great for dev builds, even for production as well, there's no problem. And it is used under the hood. If you have ever used VIT and you t Creator Act app uses the web pack. And t And Bund, oh, that's another story altogether. Again, there are cons as well. It has lower level tools, not for complete framework itself. It always needs some companion to work with that. Its plugin ecosystem is limited. And that's where exactly, again, the keyword And t When the ES build and rollup, they combine, they are known as VIT. Of course, it's a standalone product, but it's majorly a combination of ES build and rollup. If you look at the rollup, t And once you actually mix them up, then it becomes a whole library that can serve you the entire purpose of tree shaking, bundling, making it production ready, rolling up and everyt It's lightning fast. When I say lightning fast, you already have seen t And t By the way, there's also one t We'll talk about them some in another video, but t It also follows the minim It says, I will do all configuration for you, but if you want, I have a robust plugin system. I have all the configuration available. You can just inject them and use it. The developer experience so far is just loving. Everybody's loving it. It also has some cons, not as customizable as Webpack. It is trying to be there in that ecosystem, almost there, almost there. I think it has already crossed the n It is already When I say newer compared to Webpack, but stable, t We have actually pushed t And t So t And I T And by the way, in case you are still here, go ahead and check out Swela. They are in the description. Excellent, excellent platform. We have been using them, and we are still using it in the production, especially for the databases. They're very, very cheap in that. That is it for t Hope you have enjoyed t

Business Details

show address

show phone

go to website

Map

Shopping & Retail in other cities