close
Rslib
Search Docs
K
Guide
Config
GitHub
X
Discord
Guide
Config
GitHub
X
Discord
Menu
Config Overview
Filter
This page lists all the configurations for Rslib. See
Configure Rslib
for detail.
Lib Configurations
lib.format
lib.bundle
Set Entry
Example
lib.autoExtension
Default Extension
Customize Extension
lib.autoExternal
Object Type
autoExternal.dependencies
autoExternal.optionalDependencies
autoExternal.peerDependencies
autoExternal.devDependencies
Default Value
Example
Customize Externalized Dependency Types
Disable Default Behavior
lib.redirect
redirect.style
lib.syntax
Set ECMAScript Version
Set Browserslist Query
Mix ECMAScript Version and Browserslist Query
lib.externalHelpers
Example
lib.banner
Object Type
banner.js
banner.css
banner.dts
Notice
Customize Banner Content
lib.footer
Object Type
footer.js
footer.css
footer.dts
Notice
Customize Footer Content
lib.dts
Boolean Type
Object Type
dts.bundle
dts.distPath
dts.build
dts.abortOnError
dts.autoExtension
lib.shims
shims.cjs
shims.cjs['import.meta.url']
shims.esm
shims.esm.__filename
shims.esm.__dirname
shims.esm.require
lib.id
Default Value
Customize ID
lib.umdName
Example
Rsbuild Configurations
source
source.aliasStrategy
source.alias
source.assetsInclude
source.decorators
source.define
source.entry
source.exclude
source.include
source.transformImport
source.tsconfigPath
output
output.charset
output.cleanDistPath
output.copy
output.cssModules
output.dataUriLimit
output.distPath
output.emitCss
output.externals
output.filenameHash
output.filename
output.inlineScripts
output.inlineStyles
output.legalComments
output.manifest
output.minify
output.overrideBrowserslist
output.polyfill
output.sourceMap
output.target
tools
tools.bundlerChain
tools.cssLoader
tools.lightningcssLoader
tools.postcss
tools.rspack
tools.styleLoader
tools.swc
plugins
Official Plugins
Community Plugins