---
url: /api/platforms/canvas-theme-editor/src/interfaces/CdnFile.md
---
[pantoken-root](../../../../index.md) / [platforms/canvas-theme-editor/src](../index.md) / CdnFile

# Interface: CdnFile

Alpha

A single file to load from a CDN, identified by npm package name and path within it.

## Properties

### package

> **package**: `string`

Alpha

The npm package name, e.g. `"@pantoken/components"`.

***

### path?

> `optional` **path?**: `string`

Alpha

The path within the package, e.g. `"dist/components.css"`. Omit to reference the package root.

***

### version?

> `optional` **version?**: `string`

Alpha

Overrides the provider/build-level version for this file only.

***

### raw?

> `optional` **raw?**: `boolean`

Alpha

For providers that transform JS by default (esm.sh): `false` lets the provider apply its normal
ESM transform (needed to `import` a real package entry point). Defaults to `true` — serve the
file verbatim, required for prebuilt/non-ESM assets like CSS sheets and IIFE bundles.
