refactor bridge plugin into virtual module

This commit is contained in:
Nystik
2026-05-24 02:20:28 +02:00
parent 69f8320d05
commit 956a11d0cd
17 changed files with 225 additions and 148 deletions

View File

@@ -67,3 +67,8 @@ export function installRequire() {
installDebugHelpers(rawRegistry);
}
// For modules captured at runtime, e.g. the obsidian module via the virtual-plugin loader.
export function registerShim(name, mod) {
shimRegistry[name] = mod;
}