JSPM

@rsbuild/webpack

0.2.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8175
  • Score
    100M100P100Q127033F
  • License MIT

Package Exports

  • @rsbuild/webpack
  • @rsbuild/webpack/plugin-css

Readme

Rsbuild Logo

@rsbuild/webpack

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

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 { pluginBabel } from '@rsbuild/plugin-babel';
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer';

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

Documentation

https://rsbuild.dev/

Contributing

Please read the Contributing Guide.

License

Rsbuild is MIT licensed.