Skip to content

Commit

Permalink
chore: reduce bundle size a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterliu1003 committed Dec 7, 2023
1 parent cfe57e0 commit 97ebfef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useVfm } from '~/useApi'
const { modalsContainers, dynamicModals } = useVfm()
const uid = Symbol('ModalsContainer')
const uid = Symbol(__DEV__ ? 'ModalsContainer' : '')
const shouldMount = computed(() => uid === modalsContainers.value?.[0])
modalsContainers.value.push(uid)
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-final-modal/src/useApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function withMarkRaw<T extends ComponentType>(options: Partial<UseModalOptions<T
*/
export function useModal<T extends ComponentType = typeof VueFinalModal>(_options: UseModalOptions<T>): UseModalReturnType<T> {
const options = reactive({
id: Symbol('useModal'),
id: Symbol(__DEV__ ? 'useModal' : ''),
modelValue: !!_options?.defaultModelValue,
resolveOpened: () => { },
resolveClosed: () => { },
Expand Down

0 comments on commit 97ebfef

Please sign in to comment.