The IIFE bundle (dist/smp-compat.global.js) consumed by <script>-
tag themes wires the same call automatically — see
"./iife". Reading window.fb from the IIFE keeps a single
runtime fb instance shared across dist/bridge.global.js +
dist/smp-compat.global.js.
Install the bootstrap result onto globalThis / window for
SMP-compatible script consumers. Idempotent — every assignment is
gated by the __smpCompatLoaded flag and hasOwnProperty checks.
foo-webview-sdk/smp-compat— Spider Monkey Panel compatibility entry.ESM consumers import the bootstrap helper plus the wrapper classes and types directly:
The IIFE bundle (
dist/smp-compat.global.js) consumed by<script>- tag themes wires the same call automatically — see "./iife". Readingwindow.fbfrom the IIFE keeps a single runtimefbinstance shared acrossdist/bridge.global.js+dist/smp-compat.global.js.