Thus we have written our own module bundler by following the rollup way. We can also support a few extra options like code minification and mangling by using terser, we can also support iife format by wrapping the bundle with an iife expression. Since this is a basic example on how a bundler works, I have skimmed through a few stuffs, but in practice module bundlers are quite complex and interesting to learn about.
Check out the entire code in github
Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.
You don't need void 0
1 project | dev.to | 10 May 2022
2 projects | dev.to | 8 Aug 2022
introducing tilepieces: An open source project to visually editing HTML documents and Web applications
4 projects | dev.to | 6 Apr 2022
I reduced an npm package size by 50% with minification
2 projects | dev.to | 27 Sep 2022
2 projects | reddit.com/r/ProgrammerHumor | 3 Sep 2021