Skip to content

Commit

Permalink
refactor: use only @vue/reactivity (closes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Jun 13, 2023
1 parent 185a1d0 commit d352895
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default defineBuildConfig({
'src/solid',
'src/angular',
],
externals: ['@vue/reactivity'],
declaration: true,
clean: true,
})
2 changes: 1 addition & 1 deletion src/angular.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { computed as _computed, shallowRef, triggerRef } from 'vue'
import { computed as _computed, shallowRef, triggerRef } from '@vue/reactivity'

export interface Signal<T = any> {
(): T
Expand Down
2 changes: 1 addition & 1 deletion src/solid.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { shallowRef, triggerRef } from 'vue'
import { shallowRef, triggerRef } from '@vue/reactivity'

export type SignalGetter<T> = () => T
export type SignalSetter<T> = (v: T | ((v: T) => T)) => void
Expand Down

0 comments on commit d352895

Please sign in to comment.