@next/plugin-rspack v15.2.5
@next/plugin-rspack (EXPERIMENTAL)
!WARNING This package is currently experimental and actively developed and supported in Next.js’
canarybranch. To use this, you must be using a published canary build of Next.js.
This plugin allows you to use Rspack in place of webpack with Next.js.
Installation
npm install @next/plugin-rspackor
yarn add @next/plugin-rspackUsage
Create or update a next.config.js/next.config.ts and wrap your existing configuration:
const withRspack = require('@next/plugin-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/plugin-rspack with other Next.js plugins:
const withPlugins = require('next-compose-plugins')
const withRspack = require('@next/plugin-rspack')
module.exports = withPlugins([
[withRspack],
// your other plugins here
])12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago