---
title: "ScriptEntry"
description: "What a browser needs to load one script entry: its URL, the URLs worth `modulepreload` hints, and the import map its imports resolve through."
url: "https://pitlane.tools/package/assets/interface/ScriptEntry"
---

# ScriptEntry

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

What a browser needs to load one script entry: its URL, the URLs worth `modulepreload` hints, and the import map its imports resolve through.

Structurally the `ScriptEntry` of `remix/assets`.

## Properties

### href

```ts
href: string;
```

The public URL of the entry module.

---

### importMap

```ts
importMap: ImportMap;
```

The complete client import map, or `{ imports: {} }` when chunk import maps are disabled.

---

### preloads

```ts
preloads: string[];
```

The entry module's URL followed by its static JavaScript dependencies, shallowest first.
