source.include

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.

INFO

The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to Rsbuild - source.include.