import { watch as watch$1, watchEffect as watchEffect$1 } from 'vue';
import { useGlobalConfig } from './hooks/use-global-config.mjs';

function watch(sources, cb, options) {
  const forEditor = useGlobalConfig("forEditor");
  if (!forEditor.value) {
    return watch$1(sources, cb, options);
  } else {
    return () => {
    };
  }
}
function watchEffect(effect, options) {
  const forEditor = useGlobalConfig("forEditor");
  if (!forEditor.value) {
    return watchEffect$1(effect, options);
  } else {
    return () => {
    };
  }
}

export { watch, watchEffect };
//# sourceMappingURL=for-editor.mjs.map
