@astrojs/vue
Advanced tools
Comparing version 3.0.0-rc.1 to 3.0.0-rc.2
@@ -24,11 +24,9 @@ import { h, createSSRApp, createApp, Suspense } from 'vue'; | ||
if (client === 'only') { | ||
const app = createApp({ name, render: () => content }); | ||
await setup(app); | ||
app.mount(element, false); | ||
} else { | ||
const app = createSSRApp({ name, render: () => content }); | ||
await setup(app); | ||
app.mount(element, true); | ||
} | ||
const isHydrate = client !== 'only'; | ||
const boostrap = isHydrate ? createSSRApp : createApp; | ||
const app = boostrap({ name, render: () => content }); | ||
await setup(app); | ||
app.mount(element, isHydrate); | ||
element.addEventListener('astro:unmount', () => app.unmount(), { once: true }); | ||
}; | ||
@@ -35,0 +33,0 @@ |
{ | ||
"name": "@astrojs/vue", | ||
"version": "3.0.0-rc.1", | ||
"version": "3.0.0-rc.2", | ||
"description": "Use Vue components within Astro", | ||
@@ -37,5 +37,5 @@ "type": "module", | ||
"dependencies": { | ||
"@vitejs/plugin-vue": "^4.2.3", | ||
"@vitejs/plugin-vue-jsx": "^3.0.1", | ||
"@vue/babel-plugin-jsx": "^1.1.1", | ||
"@vitejs/plugin-vue": "^4.3.3", | ||
"@vitejs/plugin-vue-jsx": "^3.0.2", | ||
"@vue/babel-plugin-jsx": "^1.1.5", | ||
"@vue/compiler-sfc": "^3.3.4" | ||
@@ -46,11 +46,11 @@ }, | ||
"chai": "^4.3.7", | ||
"linkedom": "^0.14.26", | ||
"mocha": "^9.2.2", | ||
"vite": "^4.4.6", | ||
"linkedom": "^0.15.1", | ||
"mocha": "^10.2.0", | ||
"vite": "^4.4.9", | ||
"vue": "^3.3.4", | ||
"astro": "3.0.0-rc.5", | ||
"astro": "3.0.0-rc.9", | ||
"astro-scripts": "0.0.14" | ||
}, | ||
"peerDependencies": { | ||
"astro": "^3.0.0-rc.5", | ||
"astro": "^3.0.0-rc.9", | ||
"vue": "^3.2.30" | ||
@@ -57,0 +57,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18053
240
Updated@vitejs/plugin-vue@^4.3.3
Updated@vue/babel-plugin-jsx@^1.1.5