Skip to content

Commit

Permalink
feat: import vue-demi
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjiaxuan committed Apr 26, 2023
1 parent d4af5d5 commit fdca5eb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import NumberRoll from './NumberRoll.vue'
import { reactive, ref, watch } from 'vue'
import { reactive, ref, watch } from 'vue-demi'
/**
* data
Expand Down
2 changes: 1 addition & 1 deletion src/NumberRoll.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { computed, onMounted, ref, toRefs, watch } from 'vue'
import { computed, onMounted, ref, watch } from 'vue-demi'
const props = defineProps({
start: {
Expand Down
1 change: 1 addition & 0 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "@vue/tsconfig/tsconfig.json",
"include": ["vite.config.*", "vitest.config.*", "cypress.config.*", "playwright.config.*"],
"compilerOptions": {
"composite": true,
"types": ["node18"]
}
}
2 changes: 1 addition & 1 deletion vite.config.lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default mergeConfig(base, {
name: 'NumberRoll',
},
rollupOptions: {
external: [ 'vue' ],
external: [ 'vue', 'vue-demi' ],
output: { globals: { vue: 'Vue' } },
},
},
Expand Down

0 comments on commit fdca5eb

Please sign in to comment.