core
core copied to clipboard
fix(runtime-core): delete stale slots which are present but undefined
If slots.loader becomes undefined, slots.default in LoaderSlot was still the old value because the key is still present
<v-field>
<template v-if="custom" #loader>
<v-progress-linear />
</template>
</v-field>
<LoaderSlot v-slots={{ default: slots.loader }} />
@sxzz Will it be merged๏ผ
@KaelWD Thanks for the PR, could you add a test?
@zhangzhonghe tests updated
/ecosystem-ci run
๐ Ran ecosystem CI: Open
| suite | result |
|---|---|
| naive-ui | :x: failure |
| nuxt | :x: failure |
| pinia | :white_check_mark: success |
| router | :white_check_mark: success |
| test-utils | :white_check_mark: success |
| vant | :white_check_mark: success |
| vite-plugin-vue | :white_check_mark: success |
| vitepress | :white_check_mark: success |
| vue-macros | :white_check_mark: success |
| vuetify | :white_check_mark: success |
| vueuse | :white_check_mark: success |
/ecosystem-ci run
๐ Ran ecosystem CI: Open
| suite | result |
|---|---|
| nuxt | :white_check_mark: success |
| pinia | :white_check_mark: success |
| quasar | :white_check_mark: success |
| router | :white_check_mark: success |
| test-utils | :white_check_mark: success |
| vant | :white_check_mark: success |
| vite-plugin-vue | :white_check_mark: success |
| vitepress | :white_check_mark: success |
| vue-i18n | :white_check_mark: success |
| vue-macros | :x: failure |
| vuetify | :white_check_mark: success |
| vueuse | :white_check_mark: success |
| vue-simple-compiler | :white_check_mark: success |
Size Report
Bundles
| File | Size | Gzip | Brotli |
|---|---|---|---|
| runtime-dom.global.prod.js | 85.9 kB (+4 B) | 32.6 kB (+1 B) | 29.5 kB (-3 B) |
| vue.global.prod.js | 132 kB (+4 B) | 49.3 kB | 44.3 kB (-16 B) |
Usages
| Name | Size | Gzip | Brotli |
|---|---|---|---|
| createApp | 47.9 kB (+4 B) | 18.8 kB (+1 B) | 17.2 kB (+55 B) |
| createSSRApp | 50.6 kB (+4 B) | 20 kB (+2 B) | 18.2 kB (+3 B) |
| defineCustomElement | 50.3 kB (+4 B) | 19.6 kB (+2 B) | 17.9 kB (+1 B) |
| overall | 61.2 kB (+4 B) | 23.7 kB (+1 B) | 21.5 kB (-40 B) |
CI failed. Could you please format your files? pnpm run format
That adds a bunch of other changes in unrelated files.