Skip to content

chore(deps): update dependency vite to v8#417

Merged
xrgzs merged 7 commits intomainfrom
renovate/vite-8.x
Mar 14, 2026
Merged

chore(deps): update dependency vite to v8#417
xrgzs merged 7 commits intomainfrom
renovate/vite-8.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 13, 2026

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
vite (source) ^6.4.1^8.0.0 age confidence

Release Notes

vitejs/vite (vite)

v8.0.0

Compare Source

Features
Bug Fixes

v7.3.1

Compare Source

Please refer to CHANGELOG.md for details.

v7.3.0

Compare Source

Please refer to CHANGELOG.md for details.

v7.2.7

Compare Source

v7.2.6

Compare Source

7.2.6 (2025-12-01)

v7.2.4

Compare Source

Bug Fixes

v7.2.3

Compare Source

Bug Fixes
Performance Improvements
Miscellaneous Chores

v7.2.2

Compare Source

Bug Fixes

v7.2.1

Compare Source

Bug Fixes
Code Refactoring

v7.2.0

Compare Source

Bug Fixes
  • css: fallback to sass when sass-embedded platform binary is missing (#​21002) (b1fd616)
  • module-runner: make getBuiltins response JSON serializable (#​21029) (ad5b3bf)
  • types: add undefined to optional properties for exactOptionalProperties type compatibility (#​21040) (2833c55)
Miscellaneous Chores

v7.1.12

Compare Source

Please refer to CHANGELOG.md for details.

v7.1.11

Compare Source

Bug Fixes
Miscellaneous Chores
Code Refactoring
Build System

v7.1.10

Compare Source

Bug Fixes
Documentation
Miscellaneous Chores

v7.1.9

Compare Source

Reverts

v7.1.8

Compare Source

Bug Fixes
Documentation
Miscellaneous Chores

v7.1.7

Compare Source

Bug Fixes
  • build: fix ssr environment emitAssets: true when sharedConfigBuild: true (#​20787) (4c4583c)
  • client: use CSP nonce when rendering error overlay (#​20791) (9bc9d12)
  • deps: update all non-major dependencies (#​20811) (9f2247c)
  • glob: handle glob imports from folders starting with dot (#​20800) (105abe8)
  • hmr: trigger prune event when import is removed from non hmr module (#​20768) (9f32b1d)
  • hmr: wait for import.meta.hot.prune callbacks to complete before running other HMRs (#​20698) (98a3484)

v7.1.6

Compare Source

Bug Fixes
  • deps: update all non-major dependencies (#​20773) (88af2ae)
  • esbuild: inject esbuild helper functions with minified $ variables correctly (#​20761) (7e8e004)
  • fallback terser to main thread when nameCache is provided (#​20750) (a679a64)
  • types: strict env typings fail when skipLibCheck is false (#​20755) (cc54e29)
Miscellaneous Chores

v7.1.5

Compare Source

Bug Fixes

v7.1.4

Compare Source

Bug Fixes
Miscellaneous Chores
Code Refactoring

v7.1.3

Compare Source

Features
Bug Fixes
Performance Improvements
Miscellaneous Chores
Code Refactoring
Tests

v7.1.2

Compare Source

Bug Fixes
Miscellaneous Chores

v7.1.1

Compare Source

Bug Fixes
Miscellaneous Chores
Code Refactoring
Build System

v7.1.0

Compare Source

Features
Bug Fixes
Performance Improvements
Miscellaneous Chores
Code Refactoring
Tests
Beta Changelogs
7.1.0-beta.1 (2025-08-05)

See 7.1.0-beta.1 changelog

7.1.0-beta.0 (2025-07-30)

See 7.1.0-beta.0 changelog

v7.0.8

Compare Source

Please refer to CHANGELOG.md for details.

v7.0.7

Compare Source

Please refer to CHANGELOG.md for details.

v7.0.6

Compare Source

Features
Bug Fixes
Performance Improvements
Miscellaneous Chores
Code Refactoring
Tests
Beta Changelogs
7.1.0-beta.1 (2025-08-05)

See 7.1.0-beta.1 changelog

7.1.0-beta.0 (2025-07-30)

See 7.1.0-beta.0 changelog

v7.0.5

Compare Source

Bug Fixes
Miscellaneous Chores
Code Refactoring

v7.0.4

Compare Source

Bug Fixes
  • allow resolving bare specifiers to relative paths for entries (#​20379) (324669c)
Build System

v7.0.3

Compare Source

Bug Fixes
Miscellaneous Chores
Code Refactoring
  • minor changes to reduce diff between normal Vite and rolldown-vite (#​20354) (2e8050e)

v7.0.2

Compare Source

Bug Fixes

v7.0.1

Compare Source

Bug Fixes
Miscellaneous Chores

v7.0.0

[Compare Source](http


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/vite-8.x branch from abc03b1 to 75b9a20 Compare March 14, 2026 06:08
@renovate renovate bot force-pushed the renovate/vite-8.x branch from 75b9a20 to 4dadb68 Compare March 14, 2026 06:18
- Created a new pnpm-workspace.yaml file to allow builds for core-js.
- Changed module resolution in tsconfig.json from 'node' to 'bundler'.
- Added path mapping for @hope-ui/solid in tsconfig.json.

Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
@renovate
Copy link
Contributor Author

renovate bot commented Mar 14, 2026

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

xrgzs added 3 commits March 14, 2026 14:47
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Copy link
Member

@xrgzs xrgzs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

测试可用

@xrgzs xrgzs requested a review from jyxjjj March 14, 2026 07:38
jyxjjj
jyxjjj previously approved these changes Mar 14, 2026
Copy link
Member

@xrgzs xrgzs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chrome 86 测试异常,Vite 6打包的没问题

@jyxjjj
Copy link
Member

jyxjjj commented Mar 14, 2026

不要管那么老了

@xrgzs
Copy link
Member

xrgzs commented Mar 14, 2026

个人认为 Chrome 86 有必要兼容基本功能,至少要能加载出界面(预览器的问题可以忽略),需要等这个问题修复后再合并。

测试

@vitejs/plugin-legacy vite-dynamic-base Chrome 48 Chrome 86 Chrome 109
启用 移除 🚫 不兼容 ✅ 正常 ✅ 正常
启用 启用 🚫 不兼容 ❌ 异常 ✅ 正常
移除 启用 🚫 不兼容 ✅ 正常 ✅ 正常

Vite 6 在 Chrome 86 上正常,而且没有回落到 legacy chunks(控制台没有警告:vite: loading legacy chunks, syntax error above and the same error below should be ignored)。

Vite 8 在 Chrome 86 上回落到 legacy chunks(控制台警告:vite: loading legacy chunks, syntax error above and the same error below should be ignored),而且会插入一个错误的 script。

异常情况

vite-dynamic-base 插入 script 标签错误:

<script src="null"></script>

经过对比,两个版本插入 script 的方式没有区别,都是:

<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=  window.__dynamic_base__+e.getAttribute('data-src'),n.onload=function(){System.import(  window.__dynamic_base__+document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>

估计这个问题之前一直存在,只不过 Chrome 86 没回落到 legacy chunks 所以没出问题。

Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
@jyxjjj
Copy link
Member

jyxjjj commented Mar 14, 2026

可是为什么是86而不是111?我记得之前哪个PR也有过类似的问题。

Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
@xrgzs xrgzs requested a review from jyxjjj March 14, 2026 11:12
Copy link
Member

@xrgzs xrgzs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

让 AI 修了下,实测 chrome 89 可用


根本原因总结:

这是 vite-plugin-dynamic-base@vitejs/plugin-legacy 之间的冲突:

期望的属性 实际生成的属性
检测脚本(plugin-legacy 生成) data-src
preloads 注入(dynamic-base 生成) src(已转换)

vite-plugin-dynamic-basegenerateBundle 钩子里把 data-src 改成了 src,导致检测脚本 e.getAttribute("data-src") 返回 null

修复方式: 在 vite.config.ts 中添加了一个 enforce: "post"generateBundle 插件,在 vite-plugin-dynamic-base 执行之后运行,将 vite-legacy-polyfill 条目的 src 恢复为 data-src

@xrgzs xrgzs merged commit a6189f5 into main Mar 14, 2026
1 check passed
@xrgzs xrgzs deleted the renovate/vite-8.x branch March 14, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants