Skip to content

Commit

Permalink
chore: no need to external a vue
Browse files Browse the repository at this point in the history
  • Loading branch information
azabroflovski committed Feb 25, 2024
1 parent ac143a7 commit 051f45a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
7 changes: 0 additions & 7 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,5 @@ export default defineConfig({
socialLinks: [
{ icon: 'github', link: 'https://github.com/azabroflovski/native-modal' }
]
},
vite: {
build: {
rollupOptions: {
external: ["vue/server-renderer", "vue"]
}
}
}
})
11 changes: 6 additions & 5 deletions docs/quick-start.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<script lang="ts" setup>
import { useData } from 'vitepress'
import { initNativeModal } from '../src/lib/index.js'
import { computed } from 'vue'
initNativeModal()
import { useData } from 'vitepress';
import { computed } from 'vue';
import { initNativeModal } from '../src/lib';

const { isDark } = useData()
initNativeModal();

const { isDark } = useData();
const dialogAttrs = computed(() => {
if (isDark.value) {
return {
Expand Down

0 comments on commit 051f45a

Please sign in to comment.