Options for input source code.
Used to configure the decorators syntax.
Replaces variables in your code with other values or expressions at compile time. This can be useful for injecting env variables and other information to the code during build time.
Exclude JavaScript or TypeScript files that do not need to be transformed by SWC.
Files configured in source.exclude
will not be transformed by SWC, but the referenced files will still be bundled into the outputs.
If you want certain files not to be bundled into the outputs, you can use output.externals or Rspack's IgnorePlugin.
Specify additional JavaScript files that need to be compiled.
Configure a custom tsconfig.json
file path to use, can be a relative or absolute path.