You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch docs islands to vue-vapor and fix build issues
Convert DarkModeSwitch and TimeAgo (the two Vue islands in the docs
site) to .vapor.vue format. These are the only components that use
client: directives with <script setup>, making them candidates for
Vue Vapor's lighter runtime.
Changes required to make the build succeed:
- Add explicit imports in TheNavBar.vue and LastUpdated.vue since
unplugin-vue-components derives "DarkModeSwitchVapor" from the
.vapor.vue filename rather than "DarkModeSwitch"
- Create vapor-shim.ts that maps createVaporApp to createApp for
Vue 3.5.x compatibility (removable when Vue 3.6+ is installed)
- Add vue/vapor alias pointing to the shim
- Fix chunkForSpecialExtension scoping bug in chunks.ts (was not
passed to vendorPerFramework recursive calls)
- Add vapor-shim to hydration package build entries and exports
- Convert TimeAgo's $ref/$computed macros to standard ref()/computed()
since Reactivity Transform may not work with Vapor compilation
https://claude.ai/code/session_01Rn1bhLJcwHBfA2ewWEyWWE
0 commit comments