MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / runRspack

Function runRspack

dashboard/test/helpers/module-loader.mjs:17–28  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

15}
16
17function runRspack(config) {
18 return new Promise((resolve, reject) => {
19 rspack(config, (err, stats) => {
20 if (err) return reject(err);
21 if (stats.hasErrors()) {
22 const info = stats.toJson({ all: false, errors: true });
23 return reject(new Error(info.errors.map((e) => e.message).join("\n")));
24 }
25 resolve(stats);
26 });
27 });
28}
29
30export async function importBundledModule(entryPath, { globals = {} } = {}) {
31 const previous = new Map();

Callers 1

importBundledModuleFunction · 0.85

Calls 2

rspackFunction · 0.85
rejectFunction · 0.50

Tested by

no test coverage detected