Squash Odysseus development history

This commit is contained in:
pewdiepie-archdaemon
2026-09-11 06:04:19 +00:00
parent c9dd68d890
commit 84aa9a91de
871 changed files with 265870 additions and 27854 deletions
+4 -1
View File
@@ -158,7 +158,10 @@ _STATIC_IMPORT = re.compile(
def _editor_module_graph() -> set[str]:
"""Every module statically reachable from galleryEditor.js, as '<path>[?query]'."""
seen: set[str] = set()
stack = ["galleryEditor.js"]
panels = (_JS_DIR / "panels.js").read_text(encoding="utf-8")
entry = re.search(r"import\(['\"]\./(galleryEditor\.js(?:\?[^'\"]+)?)['\"]\)", panels)
assert entry, "panels.js must lazily import galleryEditor.js"
stack = [entry.group(1)]
while stack:
current = stack.pop()
if current in seen: