Initial checkin of Blueprint-MCP plugin

This commit is contained in:
2026-03-05 19:26:46 -05:00
parent 9cc1cb502b
commit 8367bd2221
4571 changed files with 1211887 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
const postfixRE = /[?#].*$/;
function cleanUrl(url) {
return url.replace(postfixRE, "");
}
function createManualModuleSource(moduleUrl, exports$1, globalAccessor = "\"__vitest_mocker__\"") {
const source = `const module = globalThis[${globalAccessor}].getFactoryModule("${moduleUrl}");`;
const keys = exports$1.map((name) => {
if (name === "default") {
return `export default module["default"];`;
}
return `export const ${name} = module["${name}"];`;
}).join("\n");
return `${source}\n${keys}`;
}
export { cleanUrl as a, createManualModuleSource as c };