logologo
Guide
API
Rspeedy Config
React
Rspeedy Plugins
Webpack Plugins
CHANGELOG
React
Rspeedy
Webpack
About
Overview
Contribute
简体中文
English
Guide
Rspeedy Config
React
Rspeedy Plugins
Webpack Plugins
React
Rspeedy
Webpack
Overview
Contribute
简体中文
English
logologo
Rspeedy 配置
environments
mode

dev

assetPrefix

client

websocketTransport

hmr

liveReload

progressBar

watchFiles

writeToDisk

output

assetPrefix

cleanDistPath

copy

cssModules

auto

exportGlobals

exportLocalsConvention

localIdentName

dataUriLimit

distPath

intermediate

filename

assets

bundle

css

font

image

js

media

svg

template

wasm

filenameHash

inlineScripts

legalComments

minify

css

js

jsOptions

sourceMap

js

performance

buildCache

buildDependencies

cacheDigest

cacheDirectory

chunkSplit

override

strategy

maxSize

minSize

splitChunks

printFileSize

profile

removeConsole

resolve

alias

aliasStrategy

dedupe

extensions

server

base

compress

cors

headers

host

port

proxy

strictPort

source

alias

assetsInclude

decorators

version

define

entry

exclude

include

preEntry

transformImport

camelToDashComponentName

customName

libraryDirectory

libraryName

transformToDefaultImport

tsconfigPath

tools

bundlerChain

cssExtract

loaderOptions

esModule

pluginOptions

ignoreOrder

pathinfo

cssLoader

importLoaders

modules

auto

exportLocalsConvention

localIdentName

namedExport

rsdoctor

rspack

swc

Last Updated:

在 GitHub 上编辑此页
Next Pageenvironments

Home > @lynx-js/rspeedy

#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

FunctionDescription
createRspeedy({ cwd, rspeedyConfig, loadEnv, environment, callerName, })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.
defineConfig(config)The defineConfig method is a helper function used to get TypeScript intellisense.
defineConfig(config)The defineConfig method is a helper function used to get TypeScript intellisense.
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
BuildCache

(BETA) Enable or configure persistent build cache.

This feature is experimental and may be changed in the future.

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.
ConfigParamsParameters for the function exported from lynx.config.js.
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 optimize the build-time and runtime performance.
ResolveThe Resolve option is used to control the resolution behavior of Rspack.
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.