Home > @lynx-js/rspeedy > Source
#Source interface
The Source option changes the behavior of source files.
Signature:
export interface Source #Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Record<string, string | false | string[]> | undefined |
(Optional) Create aliases to | ||
|
Rspack.RuleSetCondition | undefined |
(Optional) Include additional files that should be treated as static assets. | ||
|
Decorators | undefined |
(Optional) Used to configure the decorators syntax. | ||
|
Record<string, string | number | boolean | undefined | Record<string, unknown>> | undefined |
(Optional) The | ||
|
Entry | undefined |
(Optional) The Entry option is used to set the entry module. | ||
|
Rspack.RuleSetCondition[] | undefined |
(Optional) The | ||
|
Rspack.RuleSetCondition[] | undefined |
(Optional) The | ||
|
string | string[] | undefined |
(Optional) Add a script before the entry file of each page. This script will be executed before the page code. It can be used to execute global logics, such as injecting polyfills, setting global styles, etc. | ||
|
TransformImport[] | undefined |
(Optional) The TransformImport option transforms the import paths to enable modular imports from subpaths of third-party packages, similar to the functionality provided by babel-plugin-import. | ||
|
string | undefined |
(Optional) Configure a custom |