'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
var useGlobalConfig = require('./hooks/use-global-config.js');

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

exports.watch = watch;
exports.watchEffect = watchEffect;
//# sourceMappingURL=for-editor.js.map
