Home > @lynx-js/rspeedy > Source > exclude
The source.exclude
is used to specify JavaScript files that should be excluded from compilation.
Signature:
By default, Rsbuild compiles JavaScript files in the current directory and TypeScript/JSX files in all directories. Through the source.exclude
config, you can specify files or directories that should be excluded from compilation. The usage of source.exclude
is consistent with Rule.exclude in Rspack, which supports passing in strings or regular expressions to match module paths.
You can exclude specific files or directories from compilation to improve build performance or avoid processing certain files:
You can exclude specific third-party dependencies that don't need compilation: