Skip to content

fix: webpack cache name 绑定 appDir,避免拷贝 .cache 编错 src - #136

Merged
zhipenglin merged 1 commit into
mainfrom
cursor/isolate-copied-webpack-cache
Aug 19, 2026
Merged

fix: webpack cache name 绑定 appDir,避免拷贝 .cache 编错 src#136
zhipenglin merged 1 commit into
mainfrom
cursor/isolate-copied-webpack-cache

Conversation

@zhipenglin

Copy link
Copy Markdown
Member

Summary

  • 新增 CracoIsolateCopiedWebpackCachePlugin,用当前 appDir 生成 webpack cache.name / version,避免 workplace 拷贝原仓 .cache 后复用带原仓绝对路径的 pack(会去编译原仓 src,报 JSX preset 未开启)
  • CracoRemoteComponentsPlugin / CracoLibsExamplePlugin 默认启用该插件
  • 版本:2.4.132.4.14

Test plan

  • npm test
  • 合入 main 后确认 Publish workflow 发布 @kne/modules-dev@2.4.14

Made with Cursor

workplace rsync 会带走原仓 .cache,仅改 cacheDirectory 仍会复用 default-development pack。

Co-authored-by: Cursor <cursoragent@cursor.com>
@zhipenglin
zhipenglin merged commit 2dada71 into main Aug 19, 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