Skip to content

[Bug]: Enabling the sri option and the html.tag option caused the project build to fail #12910

@lzm0x219

Description

@lzm0x219

Version

System:
    OS: macOS 26.2
    CPU: (14) arm64 Apple M4 Max
    Memory: 745.09 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 143.0.7499.41
    Safari: 26.2
  npmPackages:
    @rsbuild/core: 2.0.0-beta.0 => 2.0.0-beta.0 
    @rsbuild/plugin-babel: 1.1.0 => 1.1.0 
    @rsbuild/plugin-react: 1.4.4 => 1.4.4 
    @rsbuild/plugin-svgr: 1.3.0 => 1.3.0

Details

开启security 的sri 选项与 填写html 的 tag 选项导致项目构建失败,cdn 地址当做本地路径处理。

Image Image

Reproduce link

https://codesandbox.io/p/github/rstackjs/rsbuild-codesandbox-example/csb-lf92qd/draft/restless-architecture

Reproduce Steps

  1. run pnpm build

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions