---
title: include
configName: source.include
---

# source.include

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

```ts
const defaultInclude = [
  [
    /node_modules\/react-router/,
    /node_modules\/react-router-dom/,
    /node_modules\/@remix-run\/router/,
    '/node_modules/.modern-js',
  ],
];
```

The `source.include` is used to specify additional JavaScript files that need to be compiled.

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

<RsbuildConig />
