Skip to content

Commit

Permalink
chore(useData): import it from vitepress/client
Browse files Browse the repository at this point in the history
  • Loading branch information
enzonotario committed Jan 21, 2025
1 parent edbbab3 commit 17ad65a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Common/OACodeBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { computed, ref, watch } from 'vue'
import VueJsonPretty from 'vue-json-pretty'
import { destr } from 'destr'
import { useData } from 'vitepress'
import { useData } from 'vitepress/client'
import { useShiki } from '../../composables/useShiki'
import { useTheme } from '../../composables/useTheme'
import 'vue-json-pretty/lib/styles.css'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Common/OAJSONEditor.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup>
import JsonEditorVue from 'json-editor-vue'
import { computed } from 'vue'
import { useData } from 'vitepress'
import { useData } from 'vitepress/client'
import { useTheme } from '../../composables/useTheme'
const props = defineProps({
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineConfig({
fileName: (format: string, entryName: string) => `vitepress-openapi.${entryName}.${format}.js`,
},
rollupOptions: {
external: ['vue', 'vitepress'],
external: ['vue', 'vitepress', 'vitepress/client'],
output: {
globals: {
vue: 'Vue',
Expand Down

0 comments on commit 17ad65a

Please sign in to comment.