Interface: CreateRspeedyOptions
The options of createRspeedy method.
Properties
callerName?
optionalcallerName?:string
The name of the framework or tool that is currently invoking Rsbuild. This allows plugins to tailor their behavior based on the calling context.
Example
Rsbuild plugins can access this value via api.context.callerName.
Default Value
cwd?
optionalcwd?:string
The root path of the current build.
environment?
optionalenvironment?:string[]
Only build specified environments.
For example, passing ['lynx'] will only build the lynx environment.
If not specified or passing an empty array, all environments will be built.
See
https://rsbuild.rs/guide/advanced/environments#build-specified-environment
Default Value
loadEnv?
optionalloadEnv?:boolean|LoadEnvOptions
Rspeedy automatically loads the .env file by default, utilizing the Rsbuild API.
You can use the environment variables defined in the .env file within your code by accessing them via import.meta.env.FOO or process.env.Foo.
See
https://rsbuild.rs/guide/advanced/env-vars#env-file
Default Value
rspeedyConfig?
optionalrspeedyConfig?:Config
The config of Rspeedy.