Skip to content

[Feature]: Add integrity support for dynamic js imports  #3125

@sowtame

Description

@sowtame

What problem does this feature solve?

if add some lazy components, their chunks will not be сhecked by hash (https://rsbuild.dev/config/security/sri#example)

like in https://www.npmjs.com/package/webpack-subresource-integrity

What does the proposed API look like?

type SriOptions = {
enable?: 'auto' | boolean;
algorithm?: 'sha256' | 'sha384' | 'sha512';
dynamic?: 'js' | 'css' | boolean;
};

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions