DEV Community

Zackary Chapple for Valor Labs

Posted on • Originally published at valor-software.com

Rspack: The Rust-Based Web Bundler that Combines High Performance with Interoperability

Rspack Announcement Image with Rocket
Atlanta, Georgia - March 9, 2023, 7 PM Eastern -- Today, ByteDance ( the tech giant behind popular platforms such as TikTok and Douyin) and Valor Software introduced Rspack to the open source community.

"Our early benchmarks of Rspack are very promising: it starts and compiles app.netlify.com (our primary user-facing web application) 300 to 500% faster than Webpack 5 with ESBuild.
We can’t wait to see Rspack also make it to the hands of Netlify customers and speed up their development workflows!"

Kaelig Deloumeau-Prigent - Principal software engineer at Netlify

Rspack offers developers a new and innovative solution for web bundling, combining multi-threaded high performance with webpack interoperability.

"The team at Valor Software has been instrumental in our journey to open-source Rspack, Their connections within the open-source community and ability to bring organizations together are unparalleled."

Lei Zhang - Manager of the platform team at ByteDance

With the collaboration between ByteDance's internal platform development team and Valor Software, a new era of web development efficiency is upon us, web development is becoming truly efficient. Rspack - a high-performance web bundler written in Rust, designed to be interoperable with webpack is being introduced to the open source community.

In the world of Open Source, optimizing for community adoption and lowering the barrier of entry for developers is extremely important. Valor Software understood this and started collaborating with Nx, an open-source developer tool, downloaded more than 3 million times a week as per NPM stats. Nx provides powerful scaffolding mechanisms and features, allowing it to help teams scale large codebases and monorepos. Their reach and approach to improving the developer experience when adopting new tech stacks will help increase the adoption of Rspack across the community.

As of today both React, and Solid have been tested and are compatible with Rspack.

”Our primary goal at Nx is to be the premier developer CLI tool for managing JavaScript projects and promoting efficient team practices. As such we do not only provide powerful plugins developed by our team, but also empower framework authors to leverage Nx as their CLI.
That’s why when ByteDance and Valor reached out, we were excited to work with them to develop a dedicated Rspack plugin for Nx. The plugin enhances the Rspack ecosystem and makes it easier for developers to adopt it and create production-ready applications.
We are excited to continue working with the Rspack team to make sure the JavaScript community gets the best tools for modern development."

Juri Strumpflohner - Senior Director of Developer Experience at Nx

About Valor Software

Founded in 2013 Valor Software is a leading software development and consulting company that specializes in advancing and bringing together open source technologies to achieve technological and business advancement for their customers. Valor brings a wealth of open-source experience to the table, having contributed to Module Federation as core team members, worked on Angular as contributors, and created ngx-bootstrap (an Angular component library with over 300 thousand downloads a week).

"First Look" video

Top comments (10)

Collapse
 
nickytonline profile image
Nick Taylor

Congrats on open sourcing this work!

Jake Peralta from Brooklyn Nine Nine saying Hella Fresh!

Collapse
 
tinkerbaj profile image
tinkerbaj

What is difference between this and vite?

Collapse
 
devdufutur profile image
Rudy Nappée

Vite does not bundle in development mode

Collapse
 
stefanvonderkrone profile image
stefanvonderkrone

not quite true, in vite you can use vite build --watch --mode development and within your config turn of minification. This way, you can have bundling in development mode

Thread Thread
 
devdufutur profile image
Rudy Nappée

Good to know, never used it

Thread Thread
 
stefanvonderkrone profile image
stefanvonderkrone

At your service :)
I recently ported our old webpack4 setup over to vite. We have a PHP backend and I didn't want to fiddle with the vite dev-server on a php backend (it's planned for a later task, though), so I found out about the solution I described above :)

Collapse
 
daguyfmny_31 profile image
Daguyfmny

Has ByteDance any plans to spy thru it?

Collapse
 
imsuvesh profile image
Suvesh K

Did you missed the word Open Source ?

Collapse
 
zachbryant profile image
Zach • Edited

Open source doesn't automatically mean safe. Doesn't guarantee that the downloaded/published binaries are free from injected code, for example. If it's unsafe, it would be cleverly disguised. An auditor would just have to be more clever.

Dont forget this is a company that has to obey the political and military interests of the CCP.

Collapse
 
mattccc profile image
Matt C

The question one would probably want to ask is if you want to run a Rust from a cn company on your local machine. Unless you trust your infra better than the NPM registry one. I don't trust either of them.