dom-to-code
Version:
navigate to the code through the dom
16 lines (13 loc) • 481 B
JavaScript
const DOM_ATTR = "data-code-location";
const OPEN_CODE_API = "/___open-code-editor";
const SUPPORT_MODE = ["vue", "react"];
const REGEX_JSX_FILE = /\.[jt]sx$/;
const REGEX_SETUP_SFC = /\.setup\.[jt]sx?$/;
const REGEX_VUE_SFC = /\.vue$/;
exports.DOM_ATTR = DOM_ATTR;
exports.OPEN_CODE_API = OPEN_CODE_API;
exports.REGEX_JSX_FILE = REGEX_JSX_FILE;
exports.REGEX_SETUP_SFC = REGEX_SETUP_SFC;
exports.REGEX_VUE_SFC = REGEX_VUE_SFC;
exports.SUPPORT_MODE = SUPPORT_MODE;
;