Skip to main content
Home
This release is 48 versions behind 4.0.43 — the latest version of @eser/bundler. Jump to latest

@eser/bundler@0.7.24
Built and signed on GitHub Actions

Works with
This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
It is unknown whether this package works with Browsers
JSR Score94%
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>>; };