Skip to content

fix: 将 webpack/babel cache 隔离到项目 .cache - #135

Merged
zhipenglin merged 1 commit into
mainfrom
cursor/isolate-app-cache
Aug 17, 2026
Merged

fix: 将 webpack/babel cache 隔离到项目 .cache#135
zhipenglin merged 1 commit into
mainfrom
cursor/isolate-app-cache

Conversation

@zhipenglin

Copy link
Copy Markdown
Member

Summary

  • 将 webpack filesystem cache 与 babel-loader cache 从 node_modules/.cache 改到项目根 .cache/,避免 workplace 软链 node_modules 时复用原仓 pack(绝对路径)导致编错目录、JSX preset 报错。
  • 版本:2.4.122.4.13

Test plan

  • npm test
  • 原仓 craco start 后 cache 落在项目 .cache/webpack.cache/babel-loader
  • workplace 软链 node_modules 后再启动,不再编译原仓 src 路径

Made with Cursor

workplace 软链 node_modules 时不能共用原仓 node_modules/.cache,webpack pack 记的是绝对路径。

Co-authored-by: Cursor <cursoragent@cursor.com>
@zhipenglin
zhipenglin merged commit 20acc7c into main Aug 17, 2026
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.

1 participant