> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/rspeedy/rspeedy.md.

# 

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](/api/rspeedy/index.md) > [@lynx-js/rspeedy](/api/rspeedy/rspeedy.md)

## rspeedy package

The document contains all the configurations of the `@lynx-js/rspeedy` package.

## Example

Use `lynx.config.ts` with  to get better TypeScript intellisense.

```ts
import { defineConfig } from '@lynx-js/rspeedy'
export default defineConfig({
  entry: './src/index.tsx',
})
```

## Functions

<table><thead><tr><th>

Function

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[createRspeedy(\{ cwd, rspeedyConfig, loadEnv, environment, callerName, }, input)](/api/rspeedy/rspeedy.createrspeedy.md)

</td><td>

The `createRspeedy` method can let you create a Rspeedy instance and you can customize the build or development process in Node.js Runtime.

</td></tr>
<tr><td>

[defineConfig(config)](/api/rspeedy/rspeedy.defineconfig.md)

</td><td>

The `defineConfig` method is a helper function used to get TypeScript intellisense.

</td></tr>
<tr><td>

[defineConfig(config)](/api/rspeedy/rspeedy.defineconfig_1.md)

</td><td>

The `defineConfig` method is a helper function used to get TypeScript intellisense.

</td></tr>
<tr><td>

[defineConfig(config)](/api/rspeedy/rspeedy.defineconfig_2.md)

</td><td>

The `defineConfig` method is a helper function used to get TypeScript intellisense.

</td></tr>
<tr><td>

[defineConfig(config)](/api/rspeedy/rspeedy.defineconfig_3.md)

</td><td>

The `defineConfig` method is a helper function used to get TypeScript intellisense.

</td></tr>
<tr><td>

[loadConfig(loadConfigOptions)](/api/rspeedy/rspeedy.loadconfig.md)

</td><td>

Load the build config by the config path.

</td></tr>
<tr><td>

[mergeRspeedyConfig(configs)](/api/rspeedy/rspeedy.mergerspeedyconfig.md)

</td><td>

Merge multiple Rspeedy configuration objects.

</td></tr>
</tbody></table>

## Interfaces

<table><thead><tr><th>

Interface

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[BuildCache](/api/rspeedy/rspeedy.buildcache.md)

</td><td>

**_(BETA)_** Enable or configure persistent build cache.

</td></tr>
<tr><td>

[BundleFilenameContext](/api/rspeedy/rspeedy.bundlefilenamecontext.md)

</td><td>

The context passed to the [Filename.bundle](/api/rspeedy/rspeedy.filename.bundle.md) function.

</td></tr>
<tr><td>

[ChunkSplit](/api/rspeedy/rspeedy.chunksplit.md)

</td><td>

[Performance.chunkSplit](/api/rspeedy/rspeedy.performance.chunksplit.md) is used to configure the chunk splitting strategy.

</td></tr>
<tr><td>

[ChunkSplitBySize](/api/rspeedy/rspeedy.chunksplitbysize.md)

</td><td>

[Performance.chunkSplit](/api/rspeedy/rspeedy.performance.chunksplit.md) is used to configure the chunk splitting strategy.

</td></tr>
<tr><td>

[ChunkSplitCustom](/api/rspeedy/rspeedy.chunksplitcustom.md)

</td><td>

[Performance.chunkSplit](/api/rspeedy/rspeedy.performance.chunksplit.md) is used to configure the chunk splitting strategy.

</td></tr>
<tr><td>

[Config](/api/rspeedy/rspeedy.config.md)

</td><td>

The `Config` is the configuration that `rspeedy` uses.

</td></tr>
<tr><td>

[ConfigParams](/api/rspeedy/rspeedy.configparams.md)

</td><td>

Parameters for the function exported from `lynx.config.js`<!-- -->.

</td></tr>
<tr><td>

[CreateRspeedyOptions](/api/rspeedy/rspeedy.createrspeedyoptions.md)

</td><td>

The options of `createRspeedy` method.

</td></tr>
<tr><td>

[CssExtract](/api/rspeedy/rspeedy.cssextract.md)

</td><td>

The [CssExtract](/api/rspeedy/rspeedy.cssextract.md) controls the options of [CssExtractRspackPlugin](https://rspack.rs/plugins/rspack/css-extract-rspack-plugin)

</td></tr>
<tr><td>

[CssExtractRspackLoaderOptions](/api/rspeedy/rspeedy.cssextractrspackloaderoptions.md)

</td><td>

</td></tr>
<tr><td>

[CssExtractRspackPluginOptions](/api/rspeedy/rspeedy.cssextractrspackpluginoptions.md)

</td><td>

</td></tr>
<tr><td>

[CssLoader](/api/rspeedy/rspeedy.cssloader.md)

</td><td>

The [CssLoader](/api/rspeedy/rspeedy.cssloader.md) controls the options of [css-loader](https://github.com/webpack-contrib/css-loader)<!-- -->.

</td></tr>
<tr><td>

[CssLoaderModules](/api/rspeedy/rspeedy.cssloadermodules.md)

</td><td>

The [cssLoader.modules](/api/rspeedy/rspeedy.cssloadermodules.md) option enables/disables the CSS Modules specification and setup basic behavior.

</td></tr>
<tr><td>

[CssModules](/api/rspeedy/rspeedy.cssmodules.md)

</td><td>

The [CssModules](/api/rspeedy/rspeedy.cssmodules.md) option is used for the customization of CSS Modules configurations.

</td></tr>
<tr><td>

[Decorators](/api/rspeedy/rspeedy.decorators.md)

</td><td>

Used to configure the decorators syntax.

</td></tr>
<tr><td>

[Dev](/api/rspeedy/rspeedy.dev.md)

</td><td>

The [Dev](/api/rspeedy/rspeedy.dev.md) option is used to control the behavior related with development. Including: HMR, DevServer, etc.

</td></tr>
<tr><td>

[DevClient](/api/rspeedy/rspeedy.devclient.md)

</td><td>

Configuration of the development client.

</td></tr>
<tr><td>

[DistPath](/api/rspeedy/rspeedy.distpath.md)

</td><td>

Set the directory of the dist files.

</td></tr>
<tr><td>

[EntryDescription](/api/rspeedy/rspeedy.entrydescription.md)

</td><td>

The `EntryDescription` describes a entry. It is useful when the project has multiple entries with different configuration.

</td></tr>
<tr><td>

[ExposedAPI](/api/rspeedy/rspeedy.exposedapi.md)

</td><td>

The exposed API of Rspeedy. Can be used in Rsbuild plugin with [api.useExposed](https://rsbuild.rs/plugins/dev/core#apiuseexposed)<!-- -->.

</td></tr>
<tr><td>

[Filename](/api/rspeedy/rspeedy.filename.md)

</td><td>

The [Filename](/api/rspeedy/rspeedy.filename.md) determines the name of the JavaScript bundle file to be output. These bundles will be written to the directory specified by output.path.

</td></tr>
<tr><td>

[LoadConfigOptions](/api/rspeedy/rspeedy.loadconfigoptions.md)

</td><td>

The options of loadConfig.

</td></tr>
<tr><td>

[LoadConfigResult](/api/rspeedy/rspeedy.loadconfigresult.md)

</td><td>

The result of [loadConfig()](/api/rspeedy/rspeedy.loadconfig.md)<!-- -->.

</td></tr>
<tr><td>

[Minify](/api/rspeedy/rspeedy.minify.md)

</td><td>

The [Minify](/api/rspeedy/rspeedy.minify.md) configures whether to enable code minification in the production build, or to configure minimizer options.

</td></tr>
<tr><td>

[Output](/api/rspeedy/rspeedy.output.md)

</td><td>

The [Output](/api/rspeedy/rspeedy.output.md) option is used to set how and where should the bundles and assets output.

</td></tr>
<tr><td>

[Performance](/api/rspeedy/rspeedy.performance.md)

</td><td>

The [Performance](/api/rspeedy/rspeedy.performance.md) option is used to optimize the build-time and runtime performance.

</td></tr>
<tr><td>

[Resolve](/api/rspeedy/rspeedy.resolve.md)

</td><td>

The [Resolve](/api/rspeedy/rspeedy.resolve.md) option is used to control the resolution behavior of Rspack.

</td></tr>
<tr><td>

[RsdoctorRspackPluginOptions](/api/rspeedy/rspeedy.rsdoctorrspackpluginoptions.md)

</td><td>

Simplified options type for `tools.rsdoctor`<!-- -->.

Keep this type free of deeply nested/intersection utility types to ensure typia can generate validators from `Config`<!-- -->.

</td></tr>
<tr><td>

[Server](/api/rspeedy/rspeedy.server.md)

</td><td>

The [Server](/api/rspeedy/rspeedy.server.md) option changes the behavior of dev-server.

</td></tr>
<tr><td>

[Source](/api/rspeedy/rspeedy.source.md)

</td><td>

The [Source](/api/rspeedy/rspeedy.source.md) option changes the behavior of source files.

</td></tr>
<tr><td>

[SourceMap](/api/rspeedy/rspeedy.sourcemap.md)

</td><td>

The [SourceMap](/api/rspeedy/rspeedy.sourcemap.md) configures whether and how to generate source-map for outputs.

</td></tr>
<tr><td>

[Tools](/api/rspeedy/rspeedy.tools.md)

</td><td>

The [Tools](/api/rspeedy/rspeedy.tools.md) options changes the behavior of various building tools.

</td></tr>
<tr><td>

[TransformImport](/api/rspeedy/rspeedy.transformimport.md)

</td><td>

The [TransformImport](/api/rspeedy/rspeedy.transformimport.md) option transforms the import paths to enable modular imports from subpaths of third-party packages, similar to the functionality provided by [babel-plugin-import](https://npmjs.com/package/babel-plugin-import)<!-- -->.

</td></tr>
</tbody></table>

## Variables

<table><thead><tr><th>

Variable

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[rspackVersion](/api/rspeedy/rspeedy.rspackversion.md)

</td><td>

</td></tr>
<tr><td>

[version](/api/rspeedy/rspeedy.version.md)

</td><td>

</td></tr>
</tbody></table>

## Type Aliases

<table><thead><tr><th>

Type Alias

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[BundleFilename](/api/rspeedy/rspeedy.bundlefilename.md)

</td><td>

The name of the bundle files.

It can be a string with placeholders (`[name]`<!-- -->, `[contenthash]`<!-- -->, `[platform]`<!-- -->), or a function that returns a string based on the [BundleFilenameContext](/api/rspeedy/rspeedy.bundlefilenamecontext.md)<!-- -->.

</td></tr>
<tr><td>

[ConsoleType](/api/rspeedy/rspeedy.consoletype.md)

</td><td>

The type of the console method.

</td></tr>
<tr><td>

[CssModuleLocalsConvention](/api/rspeedy/rspeedy.cssmodulelocalsconvention.md)

</td><td>

The style of exported class names.

</td></tr>
<tr><td>

[Entry](/api/rspeedy/rspeedy.entry.md)

</td><td>

The [Entry](/api/rspeedy/rspeedy.entry.md) option is used to set the entry module.

</td></tr>
<tr><td>

[RspeedyInstance](/api/rspeedy/rspeedy.rspeedyinstance.md)

</td><td>

The instance of Rspeedy.

</td></tr>
</tbody></table>
