split.js: setFetcher (added by split-post) belongs to render.js, so the globals block imports it
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dhu3iHseRewQ2WpBSVLokG
This commit is contained in:
1 parent
cd6e02be11
commit
5525104679
1 file changed
+1
@@ -30,6 +30,7 @@ for (const m of Object.values(mods)) {
|
||||
}
|
||||
});
|
||||
}
|
||||
if (mods["render.js"]) mods["render.js"].decl.set("setFetcher", -1); // added by tools/split-post.py after the cut
|
||||
const owner = {}; for (const m of Object.values(mods)) for (const n of m.decl.keys()) { if (owner[n]) console.error("DUP", n, owner[n], m.file); owner[n] = m.file; }
|
||||
const strip = (s) => s.replace(/\/\*[\s\S]*?\*\/|\/\/[^\n]*|`(?:\\.|[^`\\])*`|"(?:\\.|[^"\\\n])*"|'(?:\\.|[^'\\\n])*'/g, (t) => t[0] === "`" ? (t.match(/\$\{[^}]*\}/g) || []).map((x) => x.slice(2, -1)).join(" ") : " ");
|
||||
const GLOBALS = fs.readFileSync("tools/split-globals.txt", "utf8");
|
||||
|
||||
Reference in new issue
Block a user