@nrwl/js:swc
Builds using SWC.
Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/reference/project-configuration#targets.
Examples
@nrwl/js:swc can inline non-buildable libraries by opt-in to Inlining mode with external option.
{
  "build": {
    "executor": "@nrwl/js:swc",
    "options": {
      "outputPath": "dist/libs/ts-lib",
      "main": "libs/ts-lib/src/index.ts",
      "tsConfig": "libs/ts-lib/tsconfig.lib.json",
      "assets": ["libs/ts-lib/*.md"],
      "external": "all"
    }
  }
}
npx nx build ts-lib --external=all
@nrwl/js:swc can also inline buildable libraries by setting external: 'none'
{
  "build": {
    "executor": "@nrwl/js:swc",
    "options": {
      "outputPath": "dist/libs/ts-lib",
      "main": "libs/ts-lib/src/index.ts",
      "tsConfig": "libs/ts-lib/tsconfig.lib.json",
      "assets": ["libs/ts-lib/*.md"],
      "external": "none"
    }
  }
}
npx nx build ts-lib --external=none