@nrwl/js:swc
Build a project using SWC
Options can be configured in workspace.json
when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/configuration/projectjson#targets.
Options
main (required)
Type: string
The name of the main entry-point file.
outputPath (required)
Type: string
The output path of the generated files.
tsConfig (required)
Type: string
The path to the Typescript configuration file.
assets
Type: array
List of static assets.
skipTypeCheck
Default: false
Type: boolean
Whether to skip TypeScript type checking.
swcExclude
Type: array
List of SWC Glob/Regex to be excluded from compilation (https://swc.rs/docs/configuration/compilation#exclude)
watch
Default: false
Type: boolean
Enable re-building when files change.