Home > @lynx-js/rspeedy > Config > provider

Config.provider property

This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

The Rsbuild provider.

Signature:

provider?: RsbuildConfig['provider'];

Example

You can switch from Rspack to Webpack by:

  • Use webpackProvider from @rsbuild/webpack - Add pluginSwc from @rsbuild/plugin-webpack-swc for TypeScript transpilation
import { defineConfig } from '@lynx-js/rspeedy'
import { webpackProvider } from '@rsbuild/webpack'
import { pluginSwc } from '@rsbuild/plugin-webpack-swc'

export default defineConfig({
  provider: webpackProvider,
  plugins: [
    pluginSwc(),
  ],
})
Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.