Skip to content

createRuntime

createRuntime(config?): Promise<LokvisRuntime>

Defined in: packages/runtime/src/runtime-impl.ts:293

创建 Runtime 实例(W2.8 + W2.9)。默认通过 createAssetStore 工厂按 OPFS → IndexedDB → Memory 降级创建 AssetStore 并用配额校验包裹;也可通过 config.assetStore 注入自定义 store。async(工厂需异步探测环境)。

RuntimeConfig

Promise<LokvisRuntime>