Skip to content

fix: 虚拟 readme 改到 node_modules/.modules-dev (2.4.12) - #134

Merged
zhipenglin merged 1 commit into
mainfrom
cursor/modules-dev-dir-in-node-modules
Aug 17, 2026
Merged

fix: 虚拟 readme 改到 node_modules/.modules-dev (2.4.12)#134
zhipenglin merged 1 commit into
mainfrom
cursor/modules-dev-dir-in-node-modules

Conversation

@zhipenglin

Copy link
Copy Markdown
Member

Summary

  • 虚拟 `readme` 从项目根 `.modules-dev` 迁到 `node_modules/.modules-dev/readme`
  • `import('readme')` 仍走 alias;CRA ModuleScopePlugin 对 alias 绝对路径会拦 src 外导入,继续放行 `allowedPaths`
  • 去掉仓库根 `.modules-dev` gitignore;不再隔离 webpack cache
  • version:`2.4.11` → `2.4.12`

Test plan

  • workplace 软链 `node_modules` 后 `npm start` 不再报 ModuleScopePlugin / readme ENOENT
  • 合并后 CI 发布 `@kne/modules-dev@2.4.12`

Made with Cursor

workplace 软链 node_modules 时仍写盘;alias 绝对路径需放行 ModuleScopePlugin。去掉根目录 .modules-dev。

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