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

refactor(runtime-core): replace vnode.shapeFlag checks with existed functions #12406

Open noootwo opened 1 week ago

github-actions[bot] commented 1 week ago

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 100 kB (+15 B) 38 kB (+14 B) 34.2 kB (-2 B)
vue.global.prod.js 158 kB (+15 B) 57.8 kB (+10 B) 51.4 kB (+11 B)

Usages

Name Size Gzip Brotli
createApp (CAPI only) 47.2 kB (+15 B) 18.4 kB (+9 B) 16.8 kB (+11 B)
createApp 55.2 kB (+15 B) 21.4 kB (+9 B) 19.5 kB (+9 B)
createSSRApp 59.3 kB (+15 B) 23.1 kB (+10 B) 21 kB (+7 B)
defineCustomElement 60.1 kB (+15 B) 22.9 kB (+4 B) 20.9 kB (+18 B)
overall 69.1 kB (+15 B) 26.5 kB (+15 B) 24.1 kB (-8 B)
pkg-pr-new[bot] commented 1 week ago

Open in Stackblitz

@vue/compiler-core

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

@vue/compiler-dom

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

@vue/compiler-ssr

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

@vue/compiler-sfc

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

@vue/reactivity

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: 3cc3dde

edison1105 commented 4 days ago

LGTM