Mako: The Fast and Powerful Rust-Based Next-Generation Web Bundler

0

Mako is a fast and powerful Rust-based web bundler that has garnered significant attention from web developers. First unveiled in March 2023, Mako became open-source within just one year, making it freely available for anyone to use. In this article, we will explore the features and benefits of Mako, and why it is being hailed as the next-generation web bundler through real-world use cases.

1. The Genesis of Mako: Why Rust?

Mako is a web bundler developed based on Rust. The project team focused on speed and productivity from the outset. Rust is known for providing both high performance and safety, which is why Mako boasts “extremely fast” build speeds.

During the early stages of the project, the Mako team decided not to use existing Rust tools and instead create their own. This was necessary to meet the various demands of Ant Group (formerly Alipay). The team grew and developed Mako by learning and mastering Rust.

2. Key Features of Mako

Mako differentiates itself from existing bundlers in several ways, including speed, flexibility, and community support. Here are some of Mako’s key features:

  • Fast build speed: Mako was benchmarked on a project tested on a MacBook Pro M2 Max with Turbopack. It demonstrated excellent performance in terms of dev cold start time, root node and leaf node HMR time, production build time, and JS bundle size.
  • Flexible customization: Mako can be customized to meet the diverse requirements of Ant Group and adapt to business needs.
  • Extensive validation: It has been validated across thousands of projects and various npm packages and versions.

3. Real-World Case: Mako’s Performance Comparison

Mako’s performance is significantly superior when compared to existing web bundlers. Here are real-world performance comparisons in Ant Design Pro and Smallfish projects:

  • Ant Design Pro: For the entire project build, Webpack took 16 seconds, while Mako took just 3.9 seconds, making it 4 times faster. Additionally, Mako offers near-instant hot updates.
  • Smallfish project: The build time for the RSC-based intranet Hybrid framework Smallfish project was reduced from 36.7 seconds to 1.2 seconds.

As shown, Mako offers a remarkable speed improvement over existing bundlers. This translates into significant time savings and efficiency for developers.

4. The Future Potential of Mako

Mako has unlimited potential for growth. The performance and features combined with the advantages of Rust will continue to evolve. The Mako team is committed to continuous updates and community support to make it an even better tool.

Conclusion

Mako is a fast and powerful web bundler, setting a new standard for web development. Try Mako now. Its performance and efficiency will open up new possibilities for developers.

For more detailed information about Mako, visit the official website. Experience the impressive performance of Mako firsthand!

References: makojs.dev, “Mako is Now Open Source”

Leave a Reply