diff --git a/src/components/Editor/Output/ControlflowPanel.vue b/src/components/Editor/Output/ControlflowPanel.vue index fbd7f29..a0c40e6 100644 --- a/src/components/Editor/Output/ControlflowPanel.vue +++ b/src/components/Editor/Output/ControlflowPanel.vue @@ -3,12 +3,12 @@ import { instance } from '@viz-js/viz' import { debouncedWatch } from '@vueuse/core' import Checkbox from 'src/components/ui/Checkbox.vue' import { useOxc } from 'src/composables/oxc' -import { ref, useTemplateRef } from 'vue' +import { ref, useTemplateRef, watch } from 'vue' import OutputPreview from './OutputPreview.vue' const viz = await instance() -const { oxc } = await useOxc() +const { oxc, options } = await useOxc() const panelEl = useTemplateRef('panel') debouncedWatch( @@ -22,13 +22,22 @@ debouncedWatch( ) const raw = ref(false) +const verbose = ref(false) + +watch( + () => verbose.value, + (val) => { + options.value.controlFlow.verbose = val + }, +)