vuejs / core

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
https://vuejs.org/
MIT License
47.75k stars 8.35k forks source link

fix(v-once): setting hasOnce to current block only when in v-once #12374

Closed edison1105 closed 1 week ago

edison1105 commented 1 week ago

close #12371

github-actions[bot] commented 1 week ago

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 100 kB (+8 B) 38 kB (+3 B) 34.2 kB (+24 B)
vue.global.prod.js 159 kB (+62 B) 57.9 kB (+29 B) 51.5 kB (+80 B)

Usages

Name Size Gzip Brotli
createApp (CAPI only) 46.9 kB (+22 B) 18.3 kB (+10 B) 16.7 kB (+15 B)
createApp 55 kB (+22 B) 21.3 kB (+16 B) 19.5 kB (+80 B)
createSSRApp 59 kB (+22 B) 23 kB (+12 B) 20.9 kB (-71 B)
defineCustomElement 59.8 kB (+22 B) 22.8 kB (+6 B) 20.8 kB (+11 B)
overall 68.7 kB (+8 B) 26.4 kB (+4 B) 24 kB (-26 B)
pkg-pr-new[bot] commented 1 week ago

Open in Stackblitz

@vue/compiler-core

``` pnpm add https://pkg.pr.new/@vue/compiler-core@12374 ```

@vue/compiler-dom

``` pnpm add https://pkg.pr.new/@vue/compiler-dom@12374 ```

@vue/compiler-ssr

``` pnpm add https://pkg.pr.new/@vue/compiler-ssr@12374 ```

@vue/compiler-sfc

``` pnpm add https://pkg.pr.new/@vue/compiler-sfc@12374 ```

@vue/reactivity

``` pnpm add https://pkg.pr.new/@vue/reactivity@12374 ```

@vue/runtime-core

``` pnpm add https://pkg.pr.new/@vue/runtime-core@12374 ```

@vue/runtime-dom

``` pnpm add https://pkg.pr.new/@vue/runtime-dom@12374 ```

@vue/server-renderer

``` pnpm add https://pkg.pr.new/@vue/server-renderer@12374 ```

@vue/shared

``` pnpm add https://pkg.pr.new/@vue/shared@12374 ```

vue

``` pnpm add https://pkg.pr.new/vue@12374 ```

@vue/compat

``` pnpm add https://pkg.pr.new/@vue/compat@12374 ```

commit: 2127485