fix(compat): add entities to @vue/compat deps to fix CJS edge cases#12514
fix(compat): add entities to @vue/compat deps to fix CJS edge cases#12514edison1105 merged 2 commits intovuejs:mainfrom
entities to @vue/compat deps to fix CJS edge cases#12514Conversation
Size ReportBundles
Usages
|
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-sfc
@vue/compiler-ssr
@vue/reactivity
@vue/runtime-core
@vue/runtime-dom
@vue/server-renderer
@vue/shared
vue
@vue/compat
commit: |
Fixes vuejs#10609 Unlike the `vue` package, direct dependencies of `@vue/compat` are not externalized: https://github.com/vuejs/core/blob/201936f9a3909ae9dca4e131e1f5ad5a1c0feb77/rollup.config.js#L274 So it depends on `entities` directly in its CJS build, unlike the `vue` one which indirectly depends on it via `@vue/compiler-core`. So `entities` must be explicitly added to `@vue/compat` deps to avoid incorrect dependency resolution due to different `node_modules` layouts, such as in vuejs#10609 (comment)
499b298 to
e572a25
Compare
|
@edison1105 Would you be able to take another look at this? |
# Conflicts: # packages/compiler-core/package.json # pnpm-lock.yaml # pnpm-workspace.yaml
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe pull request updates package dependencies to use pnpm's catalog feature for centralized version management. The "entities" package is moved from direct version specifications to catalog references, with the version declared once in the workspace configuration. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #10609
Unlike the
vuepackage, direct dependencies of@vue/compatare not externalized:core/rollup.config.js
Line 274 in 201936f
So it depends on
entitiesdirectly in its CJS build, unlike thevueone which indirectly depends on it via@vue/compiler-core. Soentitiesmust be explicitly added to@vue/compatdeps to avoid incorrect dependency resolution due to differentnode_moduleslayouts, such as in #10609 (comment)Summary by CodeRabbit