Skip to content

Commit 97ebfef

Browse files
committed
chore: reduce bundle size a bit
1 parent cfe57e0 commit 97ebfef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/vue-final-modal/src/components/ModalsContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useVfm } from '~/useApi'
55
66
const { modalsContainers, dynamicModals } = useVfm()
77
8-
const uid = Symbol('ModalsContainer')
8+
const uid = Symbol(__DEV__ ? 'ModalsContainer' : '')
99
const shouldMount = computed(() => uid === modalsContainers.value?.[0])
1010
1111
modalsContainers.value.push(uid)

packages/vue-final-modal/src/useApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function withMarkRaw<T extends ComponentType>(options: Partial<UseModalOptions<T
5454
*/
5555
export function useModal<T extends ComponentType = typeof VueFinalModal>(_options: UseModalOptions<T>): UseModalReturnType<T> {
5656
const options = reactive({
57-
id: Symbol('useModal'),
57+
id: Symbol(__DEV__ ? 'useModal' : ''),
5858
modelValue: !!_options?.defaultModelValue,
5959
resolveOpened: () => { },
6060
resolveClosed: () => { },

0 commit comments

Comments
 (0)