Home > @lynx-js/rspeedy

rspeedy package

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

Example

Use lynx.config.ts with defineConfig() to get better TypeScript intellisense.

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

Functions

FunctionDescription
createRspeedy({ cwd, rspeedyConfig, loadEnv, environment })The createRspeedy method can let you create a Rspeedy instance and you can customize the build or development process in Node.js Runtime.
defineConfig(config)The defineConfig method is a helper function used to get TypeScript intellisense.
loadConfig(loadConfigOptions)Load the build config by the config path.
mergeRspeedyConfig(configs)Merge multiple Rspeedy configuration objects.

Interfaces

InterfaceDescription
ChunkSplitPerformance.chunkSplit is used to configure the chunk splitting strategy.
ChunkSplitBySizePerformance.chunkSplit is used to configure the chunk splitting strategy.
ChunkSplitCustomPerformance.chunkSplit is used to configure the chunk splitting strategy.
ConfigThe Config is the configuration that rspeedy uses.
CreateRspeedyOptionsThe options of createRspeedy method.
CssExtractThe CssExtract controls the options of CssExtractRspackPlugin
CssExtractRspackLoaderOptionsThe options of CSS extract loader.
CssExtractRspackPluginOptionsThe options for CssExtractRspackPlugin
CssLoaderThe CssLoader controls the options of css-loader.
CssLoaderModulesThe cssLoader.modules option enables/disables the CSS Modules specification and setup basic behavior.
CssModulesThe CssModules option is used for the customization of CSS Modules configurations.
DecoratorsUsed to configure the decorators syntax.
DevThe Dev option is used to control the behavior related with development. Including: HMR, DevServer, etc.
DevClientConfiguration of the development client.
DistPathSet the directory of the dist files.
EntryDescriptionThe EntryDescription describes a entry. It is useful when the project has multiple entries with different configuration.
ExposedAPIThe exposed API of Rspeedy. Can be used in Rsbuild plugin with api.useExposed.
FilenameThe Filename determines the name of the JavaScript bundle file to be output. These bundles will be written to the directory specified by output.path.
LoadConfigOptionsThe options of loadConfig.
LoadConfigResultThe result of loadConfig().
MinifyThe Minify configures whether to enable code minification in the production build, or to configure minimizer options.
OutputThe Output option is used to set how and where should the bundles and assets output.
PerformanceThe Performance option is used to
ServerThe Server option changes the behavior of dev-server.
SourceThe Source option changes the behavior of source files.
SourceMapThe SourceMap configures whether and how to generate source-map for outputs.
ToolsThe Tools options changes the behavior of various building tools.
TransformImportThe 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

VariableDescription
rspackVersion
version

Type Aliases

Type AliasDescription
ConsoleTypeThe type of the console method.
CssModuleLocalsConventionThe style of exported class names.
EntryThe Entry option is used to set the entry module.
RsdoctorRspackPluginOptions
RspeedyInstanceThe instance of Rspeedy.
除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。