Add comprehensive development roadmap via GitHub Issues
Created 10 detailed GitHub issues covering: - Project activation and management UI (#1-2) - Worker node coordination and visualization (#3-4) - Automated GitHub repository scanning (#5) - Intelligent model-to-issue matching (#6) - Multi-model task execution system (#7) - N8N workflow integration (#8) - Hive-Bzzz P2P bridge (#9) - Peer assistance protocol (#10) Each issue includes detailed specifications, acceptance criteria, technical implementation notes, and dependency mapping. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
91
frontend/node_modules/unplugin/dist/rspack/loaders/transform.mjs
generated
vendored
Normal file
91
frontend/node_modules/unplugin/dist/rspack/loaders/transform.mjs
generated
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
// src/rspack/context.ts
|
||||
import { Buffer } from "buffer";
|
||||
import { resolve } from "path";
|
||||
import { Parser } from "acorn";
|
||||
function createBuildContext(compiler, compilation, loaderContext) {
|
||||
return {
|
||||
getNativeBuildContext() {
|
||||
return {
|
||||
framework: "rspack",
|
||||
compiler,
|
||||
compilation,
|
||||
loaderContext
|
||||
};
|
||||
},
|
||||
addWatchFile(file) {
|
||||
compilation.fileDependencies.add(resolve(process.cwd(), file));
|
||||
},
|
||||
getWatchFiles() {
|
||||
return Array.from(compilation.fileDependencies);
|
||||
},
|
||||
parse(code, opts = {}) {
|
||||
return Parser.parse(code, {
|
||||
sourceType: "module",
|
||||
ecmaVersion: "latest",
|
||||
locations: true,
|
||||
...opts
|
||||
});
|
||||
},
|
||||
emitFile(emittedFile) {
|
||||
const outFileName = emittedFile.fileName || emittedFile.name;
|
||||
if (emittedFile.source && outFileName) {
|
||||
const { sources } = compilation.compiler.webpack;
|
||||
compilation.emitAsset(
|
||||
outFileName,
|
||||
new sources.RawSource(
|
||||
typeof emittedFile.source === "string" ? emittedFile.source : Buffer.from(emittedFile.source)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
function createContext(loader) {
|
||||
return {
|
||||
error: (error) => loader.emitError(normalizeMessage(error)),
|
||||
warn: (message) => loader.emitWarning(normalizeMessage(message))
|
||||
};
|
||||
}
|
||||
function normalizeMessage(error) {
|
||||
const err = new Error(typeof error === "string" ? error : error.message);
|
||||
if (typeof error === "object") {
|
||||
err.stack = error.stack;
|
||||
err.cause = error.meta;
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
||||
// src/rspack/loaders/transform.ts
|
||||
async function transform(source, map) {
|
||||
var _a;
|
||||
const callback = this.async();
|
||||
let unpluginName;
|
||||
if (typeof this.query === "string") {
|
||||
const query = new URLSearchParams(this.query);
|
||||
unpluginName = query.get("unpluginName");
|
||||
} else {
|
||||
unpluginName = this.query.unpluginName;
|
||||
}
|
||||
const id = this.resource;
|
||||
const plugin = (_a = this._compiler) == null ? void 0 : _a.$unpluginContext[unpluginName];
|
||||
if (!(plugin == null ? void 0 : plugin.transform))
|
||||
return callback(null, source, map);
|
||||
const context = createContext(this);
|
||||
const res = await plugin.transform.call(
|
||||
Object.assign(
|
||||
{},
|
||||
this._compilation && createBuildContext(this._compiler, this._compilation, this),
|
||||
context
|
||||
),
|
||||
source,
|
||||
id
|
||||
);
|
||||
if (res == null)
|
||||
callback(null, source, map);
|
||||
else if (typeof res !== "string")
|
||||
callback(null, res.code, map == null ? map : res.map || map);
|
||||
else callback(null, res, map);
|
||||
}
|
||||
export {
|
||||
transform as default
|
||||
};
|
||||
Reference in New Issue
Block a user