Skip to content

v2.71.1

Choose a tag to compare

@caohuilin caohuilin released this 06 Jul 06:53

What's Changed

Bug Fixes 🐞

  • fix(runtime): string-mode SSR no longer drops a route's stylesheet when the same CSS is referenced by a non-stylesheet <link> (e.g. <link rel="prefetch">) by @deepcoldy in #8689
  • fix(runtime): streaming SSR no longer skips route stylesheets when the same CSS URL already appears as a non-stylesheet <link> such as rel="prefetch" by @yimingjfe in #8695

更新内容

Bug 修复 🐞

  • LoadableCollector.emitStyleAssets (string SSR) deduped injected route stylesheets against every <link href> in the template, so a <link rel="prefetch"> for the same css URL (e.g. from performance.prefetch) made the real <link rel="stylesheet"> be skipped and the route rendered unstyled. It now reuses the shared hasStylesheetLink helper (also used by streaming SSR), which only matches existing <link rel="stylesheet"> tags. 由 @deepcoldy 实现, 详情可查看 #8689
  • fix(runtime): 流式 SSR 不再因为同一 CSS URL 已作为 rel="prefetch" 等非 stylesheet <link> 出现在模板中而跳过路由样式注入 由 @yimingjfe 实现, 详情可查看 #8695