Files
ObsidianPad/node_modules/app-builder-lib/out/util/pathManager.js
T

23 lines
653 B
JavaScript
Raw Normal View History

2026-05-31 18:44:04 +08:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseUrl = void 0;
exports.getTemplatePath = getTemplatePath;
exports.getVendorPath = getVendorPath;
const path = require("path");
const root = path.join(__dirname, "..", "..");
function getTemplatePath(file) {
return path.join(root, "templates", file);
}
function getVendorPath(file) {
return file == null ? path.join(root, "vendor") : path.join(root, "vendor", file);
}
const parseUrl = (url) => {
try {
return new URL(url);
}
catch {
return undefined;
}
};
exports.parseUrl = parseUrl;
//# sourceMappingURL=pathManager.js.map