---
title: "AssetBuild"
description: "A bundler's output, normalized for `createAssetManifest`."
url: "https://pitlane.tools/package/assets/build/interface/AssetBuild"
---

# AssetBuild

```ts
import type { AssetBuild } from "@pitlane/assets/build";
```

A bundler's output, normalized for `createAssetManifest`.

Paths and filenames are already portable: source keys are relative to the project root, and `file`/`stylesheets` are emitted filenames relative to `base` or absolute public URLs.

## Properties

### base

```ts
base: string;
```

The public base relative emitted filenames resolve against, such as `/` or `https://cdn.example/app/`.

---

### environments

```ts
environments: Record<string, AssetBuildEnvironment>;
```

Every participating environment by name. Exactly one has the client role.

---

### importMap?

```ts
optional importMap?: ImportMap;
```

The import map the bundler generated for the client build, when it generated one.
