Skip to content

Commit

Permalink
chore: migrate to vueuse@12
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Nov 25, 2024
1 parent f19e928 commit 974461a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
export * from '@reactive-vscode/reactivity'

export const isVue2 = false
export const isVue3 = true

export function getCurrentInstance() {
return null
}
Expand Down
4 changes: 2 additions & 2 deletions packages/vueuse/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ export default defineConfig({
bundledPackages: ['@vueuse/core', '@vueuse/shared'],
beforeWriteFile(_, content) {
return {
content: content.replaceAll('\'vue-demi\'', '\'@reactive-vscode/reactivity\''),
content: content.replaceAll('\'vue\'', '\'@reactive-vscode/reactivity\''),
}
},
}),
],
resolve: {
alias: {
'vue-demi': path.resolve(__dirname, './src/vue-demi.ts'),
vue: path.resolve(__dirname, './src/vue-replacement.ts'),
},
},
build: {
Expand Down

0 comments on commit 974461a

Please sign in to comment.