source

Configure the source code parsing and compilation options.

source.assetsInclude source.includesource.include

Include additional files that should be treated as static assets.

source.decorators source.decoratorssource.decorators

Used to configure the decorators syntax.

source.define source.definesource.define

Replaces variables in your code with other values or expressions at compile time. This can be useful for allowing different behavior between development builds and production builds.

source.entry source.entrysource.entry

Used to set the entry modules for building.

INFO

Check out the lib.bundle to learn how to set entry for bundle and bundleless project.

source.exclude source.excludesource.exclude

Specifies JavaScript/TypeScript files that do not need to be compiled. The usage is consistent with Rule.exclude in Rspack, which supports passing in strings or regular expressions to match the module path.

source.include source.includesource.include

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

source.transformImport source.transformImportsource.transformImport

Transform the import path, which can be used to modularly import the subpath of third-party packages. The functionality is similar to babel-plugin-import.

source.tsconfigPath source.tsconfigPathsource.tsconfigPath

Configure a custom tsconfig.json file path to use, can be a relative or absolute path.