type SriOptions = {
hashFuncNames?: [string, ...string[]];
enabled?: 'auto' | true | false;
hashLoading?: 'eager' | 'lazy'; // only support webpack
};undefinedAdding an integrity attribute to <script> and <link rel="stylesheet"> tags introduced by HTML allows the browser to verify the integrity of the introduced resource, thus preventing tampering with the downloaded resource.
For a specific introduction to SRI, you can refer to Rsbuild security.sri.
This configuration type is not completely consistent with Rsbuild and will be automatically converted during the build process.