---
title: exclude
configName: source.exclude
---

# source.exclude

- **Type:** [RuleSetCondition[]](https://rspack.dev/config/module#condition)
- **Default:** `[]`

Specifies JavaScript/TypeScript files that do not need to be compiled. The usage is consistent with [Rule.exclude](https://rspack.dev/config/module#ruleexclude) in Rspack, which supports passing in strings or regular expressions to match the module path.

import RsbuildConig from '@site-docs-en/components/rsbuild-config-tooltip';

<RsbuildConig />
