Skip to content

Commit ee207d1

Browse files
committed
chore: missing commits
1 parent 13f677f commit ee207d1

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

packages/nuxt/src/runtime/composables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { isFunction } from '@vue/shared'
2-
import { computed } from 'vue'
2+
import { computed } from '#imports'
33
import { useNuxtApp } from '#app'
44

55
export * from '@vueuse/schema-org'

packages/nuxt/src/runtime/plugin.client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ export default defineNuxtPlugin((nuxtApp) => {
1515
})
1616

1717
nuxtApp._useSchemaOrg = (input) => {
18-
// if we should client side rendered, we may not need to
19-
// @todo handle true SSR mode
2018
return handleNodesCSR(client, input)
2119
}
2220
nuxtApp.vueApp.use(client)

packages/nuxt/src/runtime/plugin.server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { createSchemaOrg, handleNodesSSR } from '@vueuse/schema-org'
2-
import { computed } from 'vue'
32
import { defineNuxtPlugin } from '#app'
4-
import { useRoute } from '#imports'
3+
import { computed, useRoute } from '#imports'
54
import meta from '#build/schemaOrg.config.mjs'
65

76
export default defineNuxtPlugin((nuxtApp) => {

packages/schema-org/build.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default defineBuildConfig({
1616
externals: [
1717
'consola',
1818
'vue',
19+
'vue-demi',
1920
'@vueuse/head',
2021
],
2122
})

packages/schema-org/components/defineSchemaOrgComponent.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,9 @@ export const defineSchemaOrgComponent = (name: string, defineFn?: (data: any) =>
5858
})
5959

6060
// may not be available
61-
if (schemaApi) {
61+
if (defineFn) {
6262
// register via main schema composable for route watching
63-
useSchemaOrg([
64-
defineFn(unref(nodePartial)),
65-
])
63+
useSchemaOrg([defineFn(unref(nodePartial))])
6664
}
6765

6866
return () => {

0 commit comments

Comments
 (0)