Options

main

Required
string

The main entry file.

outputPath

Required
string

The output path for the bundle.

rspackConfig

Required
string

The path to the rspack config file.

target

Required
string
Accepted values: web, node

The platform to target (e.g. web, node).

tsConfig

Required
string

The tsconfig file to build the project.

assets

Array<oneOf [object , string]>
Default: []

List of static application assets.

indexHtml

string

The path to the index.html file.

mode

string
Accepted values: development, production, none

Mode to run the build in.

optimization

boolean

Enables optimization of the build output.

sourceMap

oneOf [boolean, string]
Default: true

Output sourcemaps. Use 'hidden' for use with error reporting tools without generating sourcemap comment.