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(customElement): preserve appContext during hmr reload #12455

Open edison1105 opened 1 day ago

edison1105 commented 1 day ago

close #12453

github-actions[bot] commented 1 day ago

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 100 kB (+70 B) 38 kB (+18 B) 34.2 kB (-22 B)
vue.global.prod.js 158 kB (+70 B) 57.8 kB (+17 B) 51.5 kB (+30 B)

Usages

Name Size Gzip Brotli
createApp (CAPI only) 47.2 kB 18.3 kB 16.8 kB
createApp 55.2 kB 21.3 kB 19.5 kB
createSSRApp 59.3 kB 23.1 kB 21 kB
defineCustomElement 60.1 kB (+72 B) 22.9 kB (+14 B) 20.9 kB (+17 B)
overall 69.1 kB 26.5 kB 24.1 kB
pkg-pr-new[bot] commented 1 day ago

Open in Stackblitz

@vue/compiler-core

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

@vue/compiler-sfc

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

@vue/compiler-dom

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

@vue/compiler-ssr

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

@vue/runtime-core

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

@vue/runtime-dom

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

@vue/reactivity

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

@vue/server-renderer

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

@vue/shared

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

vue

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

@vue/compat

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

commit: b07d1db