Vite 5.2.8更新发布

本文记录了Vite项目中的多项修复,包括CSP非空检查、防止未定义文档访问、源映射问题、LightningCSS错误处理、HotModuleReplacement改进、模块扫描器bug修复以及依赖版本更新和代码重构。还提到了升级提示和解决常见问题的方法。
摘要由CSDN通过智能技术生成
  • fix: csp nonce injection when no closing tag (#16281) (#16282) (3c85c6b), closes #16281 #16282
    修复:csp nonce注入时没有关闭标签(#16281)(#16282)(3c85c6b),关闭#16281 #16282

  • fix: do not access document in /@vite/client when not defined (#16318) (646319c), closes #16318
    修复:未定义时不访问 /@vite/client 中的文档(#16318)(646319c),关闭#16318

  • fix: fix sourcemap when using object as define value (#15805) (445c4f2), closes #15805
    fix:修复使用对象作为 define 值时的源映射(#15805)(445c4f2),关闭#15805

  • fix(css): unknown file error happened with lightningcss (#16306) (01af308), closes #16306
    修复(css):未知的文件错误发生与lightningcss(#16306)(01af308),关闭#16306

  • fix(hmr): multiple updates happened when invalidate is called while multiple tabs open (#16307) (21cc10b), closes #16307
    修复(hmr):当多个标签打开时调用无效时发生多个更新(#16307)(21cc10b),关闭#16307

  • fix(scanner): duplicate modules for same id if glob is used in html-like types (#16305) (eca68fa), closes #16305
    修复(扫描仪):如果在类似HTML的类型中使用glob,则相同ID的重复模块(#16305)(eca68fa),关闭#16305

  • chore(deps): update all non-major dependencies (#16325) (a78e265), closes #16325
    chore(deps):update all non-major dependencies(#16325)(a78e265),closes #16325

  • refactor: use types from sass instead of @types/sass (#16340) (4581e83), closes #16340
    重构:使用sass中的类型而不是@types/sass(#16340)(4581 e83),关闭#16340

目前在更新时有提示类似rollup报错,需要更新最新的nodejs和npm install,或者清除依赖项重新安装后才继续运行,如有遇到可以尝试。

  • 4
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

老父亲的能量嘎嘣脆

感谢支持,共同成长

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值