#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.
import { defineConfig } from '@lynx-js/rspeedy'
export default defineConfig({
entry: './src/index.tsx',
})#Functions
|
Function |
Description |
|---|---|
|
createRspeedy({ cwd, rspeedyConfig, loadEnv, environment, callerName, }, input) |
The |
|
The | |
|
The | |
|
The | |
|
The | |
|
Load the build config by the config path. | |
|
Merge multiple Rspeedy configuration objects. |
#Interfaces
|
Interface |
Description |
|---|---|
|
(BETA) Enable or configure persistent build cache. | |
|
Performance.chunkSplit is used to configure the chunk splitting strategy. | |
|
Performance.chunkSplit is used to configure the chunk splitting strategy. | |
|
Performance.chunkSplit is used to configure the chunk splitting strategy. | |
|
The | |
|
Parameters for the function exported from | |
|
The options of | |
|
The CssExtract controls the options of CssExtractRspackPlugin | |
|
The options of CSS extract loader. | |
|
The options for CssExtractRspackPlugin | |
|
The CssLoader controls the options of css-loader. | |
|
The cssLoader.modules option enables/disables the CSS Modules specification and setup basic behavior. | |
|
The CssModules option is used for the customization of CSS Modules configurations. | |
|
Used to configure the decorators syntax. | |
|
The Dev option is used to control the behavior related with development. Including: HMR, DevServer, etc. | |
|
Configuration of the development client. | |
|
Set the directory of the dist files. | |
|
The | |
|
The exposed API of Rspeedy. Can be used in Rsbuild plugin with api.useExposed. | |
|
The Filename determines the name of the JavaScript bundle file to be output. These bundles will be written to the directory specified by output.path. | |
|
The options of loadConfig. | |
|
The result of loadConfig(). | |
|
The Minify configures whether to enable code minification in the production build, or to configure minimizer options. | |
|
The Output option is used to set how and where should the bundles and assets output. | |
|
The Performance option is used to optimize the build-time and runtime performance. | |
|
The Resolve option is used to control the resolution behavior of Rspack. | |
|
The Server option changes the behavior of dev-server. | |
|
The Source option changes the behavior of source files. | |
|
The SourceMap configures whether and how to generate source-map for outputs. | |
|
The Tools options changes the behavior of various building tools. | |
|
The TransformImport option transforms the import paths to enable modular imports from subpaths of third-party packages, similar to the functionality provided by babel-plugin-import. |
#Variables
|
Variable |
Description |
|---|---|
#Type Aliases
|
Type Alias |
Description |
|---|---|
|
The type of the console method. | |
|
The style of exported class names. | |
|
The Entry option is used to set the entry module. | |
|
The instance of Rspeedy. |

