[webpack.cache.PackFileCacheStrategy] 序列化大量字符串 (110kiB) 会影响反序列化性能

作者: moroshko创建于 2021年9月20日更新于 2025年8月13日
标签help wantedwebpack

描述错误

奇怪的是,增加更多的 Sprinkles(请参阅 此次提交)会导致在 Node 控制台中出现以下警告:

<w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (110kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)

链接到重现问题

  1. git clone https://GitHub.com/moroshko/webpack-cache-issue.git
  2. cd webpack-cache-issue
  3. yarn
  4. yarn dev
  5. 观察警告

内容来源: vanilla-extract-css/vanilla-extract