@cocalc/project
Version:
CoCalc: project daemon
17 lines • 598 B
JavaScript
;
/*
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
* License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.get_prettier = void 0;
// The whole purpose of this is to only load prettier if we really need it – this saves a few MB of project memory usage
let instance = null;
function get_prettier() {
if (instance == null) {
instance = require("prettier");
}
return instance;
}
exports.get_prettier = get_prettier;
//# sourceMappingURL=prettier-lib.js.map