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

v1.3.8

Highlights 💡

Exposing SWC JS API

Rspack now experimentally exposes some SWC JavaScript APIs via rspack.experiments.swc. This allows you to call SWC methods like transform or minify without installing the additional @swc/core package.

See SWC API for more details.

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.7...v1.3.8

5 days ago
rspack

v1.3.7

💡 Highlights

The rspack.dev now provides llms.txt to help LLMs better understand Rspack:

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.6...v1.3.7

6 days ago
rspack

v1.3.6

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.5...v1.3.6

15 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

21 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

22 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

26 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

29 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

2025-03-28 17:17:51
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