New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

next-rspack

Package Overview
Dependencies
Maintainers
1
Versions
645
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-rspack

> [!WARNING] > This package is currently experimental. It's not an official Next.js plugin, and is supported by the Rspack team in partnership with Next.js. Help improve Next.js and Rspack by providing feedback at https://github.com/vercel/next.js/discuss

latest
Source
npmnpm
Version
16.2.3
Version published
Weekly downloads
64K
-48.3%
Maintainers
1
Weekly downloads
 
Created
Source

next-rspack (EXPERIMENTAL)

[!WARNING] This package is currently experimental. It's not an official Next.js plugin, and is supported by the Rspack team in partnership with Next.js. Help improve Next.js and Rspack by providing feedback at https://github.com/vercel/next.js/discussions/77800

This plugin allows you to use Rspack in place of webpack with Next.js.

Installation

npm install next-rspack

or

yarn add next-rspack

Usage

Create or update a next.config.js/next.config.ts and wrap your existing configuration:

const withRspack = require('next-rspack')

/** @type {import('next').NextConfig} */
const nextConfig = {
  /* config options here */
}

module.exports = withRspack(nextConfig)

Usage with next-compose-plugins

Alternatively, you can use next-compose-plugins to quickly integrate next-rspack with other Next.js plugins:

const withPlugins = require('next-compose-plugins')
const withRspack = require('next-rspack')

module.exports = withPlugins([
  [withRspack],
  // your other plugins here
])

FAQs

Package last updated on 08 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts