🚀
High Performance
Built with Rust for improved performance compared to JavaScript-based bundlers
High-performance JavaScript bundling with Rust and Node.js
mini-rspack is a simplified implementation of Rspack bundler using Rust and Node.js bindings. It demonstrates how to create a JavaScript bundler with Rust for improved performance. This project serves as an educational resource for understanding modern bundler architecture and the internals of tools like webpack and rspack.
# Clone the repository
git clone https://github.com/Sunny-117/mini-rspack.git
cd mini-rspack
# Install dependencies
npm install
# Build the Rust code
npm run build
# Create a configuration file
const { createCompiler } = require('mini-rspack');
const compiler = createCompiler(options);
# Run the compiler
compiler.run((err, stats) => {
console.log('Compilation successful!');
});