/* Copyright 2026 Marimo. All rights reserved. */ import { DefaultWasmController } from "./bootstrap"; import type { WasmController } from "./types"; // Load the controller // Falls back to the default controller export async function getController(version: string): Promise { try { const controller = await import( /* @vite-ignore */ `/wasm/controller.js?version=${version}` ); return controller; } catch { return new DefaultWasmController(); } }