-
-
Notifications
You must be signed in to change notification settings - Fork 9k
fix(runtime-core): comments before single root element breaking Transition #6238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
❌ Deploy Preview for vuejs-coverage failed.
|
Thanks for your PR, but I think the #7387 way is better because the code it adds can be removed in production mode.
qmhc
commented
Dec 22, 2022
@zhangzhonghe Thanks for your reply. Will it make differentiation in development mode and production mode?
zhangzhonghe
commented
Dec 22, 2022
Will it make differentiation in development mode and production mode?
User-defined comments are removed by the build tool in production mode.
core/packages/shared/src/patchFlags.ts
Lines 95 to 100 in 50f1327
qmhc
commented
Dec 22, 2022
@zhangzhonghe Yes, the comments will be removed in production mode. I mean will this problem occur in development mode? I can reproduce it in playground in development mode.😂
zhangzhonghe
commented
Dec 22, 2022
I am trying to express my perspective more clearly:
- Root comment breaking the
<Transition>without any warning #6080 is definitely a bug. - This bug only occurs in development mode because the comments are removed in production mode.
- Therefore, the code to fix this bug is unnecessary in production mode and can be removed.
- Vue identifies code that can be removed in production mode with the global variable
__DEV__. - Therefore, the code to fix this bug should be wrapped in the following block of code in order to be removed in production mode.
// The following block of code can be removed in production mode if (__DEV__) { // fix bug }
qmhc
commented
Jan 4, 2023
@zhangzhonghe I'm not sure if I'm on the right way. The code seems to have many overlaps, hope to get your guidance.
edison1105
commented
Aug 29, 2024
This PR seems to be the proper fix. Could you please resolve the conflicts?
zhangzhonghe
commented
Aug 29, 2024
Size ReportBundles
Usages
|
@vue/compiler-core
pnpm add https://pkg.pr.new/@vue/compiler-core@6238
@vue/compiler-dom
pnpm add https://pkg.pr.new/@vue/compiler-dom@6238
@vue/compiler-sfc
pnpm add https://pkg.pr.new/@vue/compiler-sfc@6238
@vue/compiler-ssr
pnpm add https://pkg.pr.new/@vue/compiler-ssr@6238
@vue/reactivity
pnpm add https://pkg.pr.new/@vue/reactivity@6238
@vue/runtime-core
pnpm add https://pkg.pr.new/@vue/runtime-core@6238
@vue/runtime-dom
pnpm add https://pkg.pr.new/@vue/runtime-dom@6238
@vue/server-renderer
pnpm add https://pkg.pr.new/@vue/server-renderer@6238
@vue/shared
pnpm add https://pkg.pr.new/@vue/shared@6238
@vue/compat
pnpm add https://pkg.pr.new/@vue/compat@6238
vue
pnpm add https://pkg.pr.new/vue@6238
commit: 71bdb90
edison1105
commented
Aug 30, 2024
/ecosystem-ci run
vue-bot
commented
Aug 30, 2024
|
📝 Ran ecosystem CI: Open
|
fix #6080.
The testing html