Skip to content

Interface: CdnModule

Defined in: packages/valaxy/node/types/config.ts:29

Experimental

A module to load from CDN instead of bundling

Properties

css?

ts
optional css: string;

Defined in: packages/valaxy/node/types/config.ts:50

Experimental

Optional CSS URL if the module requires stylesheet

Example

ts
'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css'

exports?

ts
optional exports: string[];

Defined in: packages/valaxy/node/types/config.ts:56

Experimental

Named exports to re-export from the global variable. Required for libraries that use named exports (e.g., import { ref } from 'vue').

Example

ts
['ref', 'computed', 'watch', 'createApp']

global

ts
global: string;

Defined in: packages/valaxy/node/types/config.ts:40

Experimental

Global variable name the library exposes on window Used for mapping imports to window[global]

Example

ts
'Vue'

name

ts
name: string;

Defined in: packages/valaxy/node/types/config.ts:34

Experimental

npm package name to externalize

Example

ts
'vue'

url

ts
url: string;

Defined in: packages/valaxy/node/types/config.ts:45

Experimental

Full CDN URL to the UMD/IIFE script

Example

ts
'https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.global.prod.js'