UNPKG

@webcontainer/snapshot

Version:

Build filesystem snapshots for the WebContainer API

8 lines (7 loc) 281 B
/// <reference types="node" /> import { Buffer } from 'node:buffer'; /** * Traverses the folder at `root` and builds a binary snapshot. The returned buffer is suitable to * be loaded by `WebContainer#mount()`. */ export declare function snapshot(root: string): Promise<Buffer>;