This release is 48 versions behind 4.0.43 — the latest version of @eser/bundler. Jump to latest
Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
Works with
•JSR Score94%•This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers, Browsers




Downloads90/wk
•Published4 months ago (0.7.24)
// Copyright 2023-present Eser Ozvataf and other contributors. All rights reserved. Apache-2.0 license. export interface Builder { build(): Promise<BuildSnapshot>; } export type BuildSnapshot = { /** The list of files contained in this snapshot, not prefixed by a slash. */ readonly paths: Array<string>; /** For a given file, return it's contents. * @throws If the file is not contained in this snapshot. */ read( path: string, ): | ReadableStream<Uint8Array> | Uint8Array | null | Promise<ReadableStream<Uint8Array> | Uint8Array | null>; /** For a given entrypoint, return it's list of dependencies. * * Returns an empty array if the entrypoint does not exist. */ dependencies(pathStr: string): Array<string>; }; export type BuildSnapshotSerialized = { build_id: string; files: Record<string, Array<string>>; };