web-infra-dev/rspack
 Watch   
 Star   
 Fork   
9 days ago
rspack

v1.3.5

Rspack comes to Next.js 🎉

We’re excited to introduce next-rspack, a community-driven plugin bringing direct Rspack support to Next.js.

See the Rspack joins the Next.js ecosystem blog for details.

What's Changed

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.4...v1.3.5

15 days ago
rspack

v1.3.4

What's Changed

Performance Improvements ⚡

Bug Fixes 🐞

Document Updates 📖

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.3...v1.3.4

16 days ago
rspack

v1.3.3

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.2...v1.3.3

21 days ago
rspack

v1.3.2

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.1...v1.3.2

23 days ago
rspack

v1.3.1

Highlights

🚀 Support running JavaScript loader in parallel

Added a way to run JavaScript loader in parallel driven by worker_threads, using the max thread available on the OS.

This feature is still experimental. To enable parallelism, set Rule.use.parallel = true and experiments.parallelLoader = true:

module.exports = {
  module: {
    rules: [
      {
          test: /\.less$/,
          use: [
             {
                loader: "less-loader",
+               parallel: true,
                options: { ... }
             }
          ]
          type: "css"
      }
    ]
  },
  experiments: {
      css: true,
+     parallelLoader: true
  }
}

In big projects like 100x antd.less, we got 2.26x performance boost. (Tested on Apple M2 Max, 64G)

Related PR: https://github.com/web-infra-dev/rspack/pull/9807

⚠️ Fixed some critical bugs in 1.3.0

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.0...v1.3.1

27 days ago
rspack

v1.3.0

What's Changed

See Announcing Rspack 1.3 for more details.

Breaking Changes 🛠

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.8...v1.3.0

2025-03-25 16:00:06
rspack

v1.3.0-beta.1

Highlights 💡

Introduce lazy compilation middleware

In the past, lazy compilation required starting a separate server to handle special requests which caused port, server config and proxy inconsistency, now its core capability is encapsulated as an express style middleware.

Developers only need a few lines of code to embed lazy compilation ability into their custom development server, solving the configuration inconsistent problem of multiple service instances. Users of @rspack/cli can use it without any changes, custom dev server users can easily access it through a middleware, check the following example, you can also see more detail in our official docs.

import { experiments, rspack } from '@rspack/core';
import config from './rspack.config.mjs';
import DevServer from 'webpack-dev-server';

const compiler = rspack(config);

const middleware = experiments.lazyCompilationMiddleware(
  compiler,
  { 
    entries: true, // lazy compile entries
    imports: true, // lazy compile dynamic imports
    ...config.experiments?.lazyCompilation
  }
);

const server = new DevServer(compiler, {
  port: 3000,
  setupMiddlewares(other) {
    return [middleware, ...other];
  },
});

server.start();

CircularDependencyRspackPlugin

We added a built-in plugin CircularDependencyRspackPlugin to Rspack to detect circular dependencies between runtime modules. Since the plugin is based on Rust, it is directly integrated with the Rspack module graph, avoiding expensive copying and serialization costs. The plugin traverses the module graph of each entry once to find all circular references, rather than checking modules individually, which means that the performance of the plugin is better.

Usage reference:

import { rspack } from '@rspack/core';

const config = {
  plugins: [
    new rspack.CircularDependencyRspackPlugin({
      failOnError: true,
    })
  ]
}

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.3.0-beta.0...v1.3.0-beta.1

2025-03-18 17:24:02
rspack

v1.3.0-beta.0

Highlights 💡

Support for the extends option

The rspack.config.js now supports an extends option, which is used to extend configurations from other files or packages. This allows you to create a base configuration and extend it for different environments or use cases.

Example usage:

export default {
  extends: './base.rspack.config.mjs',
  // Override or add to the base configuration
  output: {
    filename: '[name].bundle.js',
  },
};

Special thanks to @hulin32 for contributing this feature: #9617. 🎉

What's Changed

Breaking Changes 🛠

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.8...v1.3.0-beta.0

2025-03-11 20:24:16
rspack

v1.2.8

Highlights 💡

Optimized memory consumption while rebuilding

Bumped Mimalloc to v3 to lift memory usage issue while rebuilding on macOS. https://github.com/web-infra-dev/rspack/pull/9533

A user shared the following results after testing the 1.2.8:

"The canary version solves the memory leak (almost) completely for me 🥳."

Version Initial Compile After 10 HMR
1.2.2 4.57 GB 5.48 GB
1.2.7 3.93 GB 4.18 GB
1.2.8-canary-3d971bbf-20250304 3.66 GB 3.72 GB

The 1.2.8 demonstrates a ~10% improvement over 1.2.7.

What's Changed

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.7...v1.2.8

2025-03-03 22:28:18
rspack

v1.2.7

Highlights 💡

⚡️ MacOS performance improved, 15% faster

image If you want to know more details, check this out https://github.com/web-infra-dev/rspack/pull/9518

🌿 Less HMR memory consumption, 20% off

Name Base (2025-02-28  2b45815) Current Change
threejs_development-mode_10x_hmr + rss memory 1137 MiB ± 129 MiB 890 MiB ± 293 MiB -21.72 %

If you want to know more about this , follow link ; and this is the benchmark report.

What's Changed

Performance Improvements ⚡

Exciting New Features 🎉

Bug Fixes 🐞

Document Updates 📖

Other Changes

New Contributors

Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.2.6...v1.2.7