@rsbuild/webpack
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published

@rsbuild/webpack

This package can be used to switch Rsbuild's bundler from Rspack to webpack.

npm version license downloads

Note that this package is mainly used for compatibility with Modern.js and Rsbuild internal testing. We do not recommend you to use this package in a Rsbuild project. The API of the current package may change over iterations.

Usage

import { defineConfig } from '@rsbuild/core';
import { webpackProvider } from '@rsbuild/webpack';
import { pluginSwc } from '@rsbuild/plugin-webpack-swc';

export default defineConfig({
  provider: webpackProvider,
  plugins: [
    // @rsbuild/webpack has no built-in transformer and minimizer,
    // so you need to register the @rsbuild/plugin-webpack-swc.
    pluginSwc(),
  ],
});

Note that some Rsbuild plugins cannot be used with the webpack provider.

Documentation

See Documentation.

License

MIT.

Readme

Keywords

none

Package Sidebar

Install

npm i @rsbuild/webpack

Homepage

rsbuild.dev

Weekly Downloads

14,140

Version

1.3.2

License

MIT

Unpacked Size

216 kB

Total Files

28

Last publish

Collaborators

  • chenjiahan
  • hardfist