UNPKG

gitbook-plugin-include-codeblock

Version:
30 lines (23 loc) 773 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.aceCheck = aceCheck; /* eslint-disable */ // Check that ace plugin is loaded after include-codeblock function aceCheck() { // Check ace is used. try { require.resolve("gitbook-plugin-ace"); // Check is not currently loaded. var aceLoaded = Boolean(require("module")._cache[require.resolve("gitbook-plugin-ace")]); if (aceLoaded) { console.log(""); // flush console.error("`gitbook-plugin-include-codeblock` plugin must be loaded before `gitbook-plugin-ace`!"); } } catch (e) { console.log(""); // flush console.warn("ace features disabled (`gitbook-plugin-ace` required)"); } } /* eslint-enable */ //# sourceMappingURL=ace-check.js.map