vuejs / core-vapor

Vue Vapor is a variant of Vue that offers rendering without the Virtual DOM.
https://vapor-repl.netlify.app
MIT License
1.81k stars 86 forks source link

feat: support usage of `v-once` with `v-if` #200

Closed lulu0119 closed 4 months ago

lulu0119 commented 4 months ago

Implemented basic v-once support for v-if/else via a once flag, please review and advise if any scenarios are unaddressed.

netlify[bot] commented 4 months ago

Deploy Preview for vapor-repl ready!

Name Link
Latest commit 69a8908979031017f4fbdafc9155cc350ea0f013
Latest deploy log https://app.netlify.com/sites/vapor-repl/deploys/6640972cfb6c760008689828
Deploy Preview https://deploy-preview-200--vapor-repl.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 4 months ago

Deploy Preview for vapor-template-explorer ready!

Name Link
Latest commit 69a8908979031017f4fbdafc9155cc350ea0f013
Latest deploy log https://app.netlify.com/sites/vapor-template-explorer/deploys/6640972c959908000831e243
Deploy Preview https://deploy-preview-200--vapor-template-explorer.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

github-actions[bot] commented 4 months ago

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 80 kB 28.1 kB 24.7 kB
compiler-vapor.global.prod.js 55.5 kB (+60 B) 18.9 kB (+12 B) 17.1 kB (+37 B)
runtime-dom.global.prod.js 96.6 kB 36.5 kB 32.9 kB
runtime-vapor.global.prod.js 45.2 kB (+23 B) 16.9 kB (+32 B) 15.5 kB (+28 B)
vue-vapor.global.prod.js 97.9 kB (+83 B) 34.3 kB (+53 B) 30.9 kB (-2 B)
vue.global.prod.js 154 kB 55.8 kB 49.8 kB

Usages

Name Size Gzip Brotli
createApp 57 kB 21.9 kB 20 kB
createSSRApp 60.4 kB 23.3 kB 21.2 kB
defineCustomElement 59.3 kB 22.7 kB 20.7 kB
vapor 45.6 kB (+23 B) 16.9 kB (+25 B) 15.5 kB (+24 B)
overall 70.7 kB 26.9 kB 24.4 kB
lulu0119 commented 4 months ago

Thank you, sxzz, for helping me with the modifications.