Skip to content

fix: workplace 软链 node_modules 时 readme 与 cache 隔离 - #133

Merged
zhipenglin merged 2 commits into
mainfrom
cursor/fix-readme-symlink-cache
Aug 17, 2026
Merged

fix: workplace 软链 node_modules 时 readme 与 cache 隔离#133
zhipenglin merged 2 commits into
mainfrom
cursor/fix-readme-symlink-cache

Conversation

@zhipenglin

Copy link
Copy Markdown
Member

Summary

  • 虚拟 readme / manifest 从 node_modules/readme 迁到 .modules-dev/readme,并配置 readme alias 与 ModuleScopePlugin 放行
  • node_modules 为软链时,webpack filesystem cache 写到 .modules-dev/webpack-cache
  • .gitignore 忽略 .modules-dev
  • version:2.4.102.4.11

配合

  • @kne/react-scripts@5.1.6(PR 修改css-loader #8)排除 node_modules 的 source-map-loader,消除依赖 source map ENOENT

Test plan

  • ~/.cursor_workplace/ai-interview-flowup/* 软链 node_modules 后 npm start 可编译
  • 合并后 CI 发布 @kne/modules-dev@2.4.11

Made with Cursor

zhipenglin and others added 2 commits August 17, 2026 16:52
虚拟 readme 改到 .modules-dev/readme 并 alias;软链 node_modules 时将 filesystem cache 隔离到 .modules-dev/webpack-cache,避免 realpath 与跨目录 cache 混用。

Co-authored-by: Cursor <cursoragent@cursor.com>
readme 已迁出 node_modules,workplace 软链可继续共用 SOURCE 的 filesystem cache。

Co-authored-by: Cursor <cursoragent@cursor.com>
@zhipenglin
zhipenglin merged commit 1939c33 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