Interface: CdnModule ​

Source: 1.1.0 · e3417e89b638

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

Experimental

A module to load from CDN instead of bundling

Properties ​

css? ​

ts
optional css?: string;

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

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:55

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:39

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:33

Experimental

npm package name to externalize

Example ​

ts
'vue'

url ​

ts
url: string;

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

Experimental

Full CDN URL to the UMD/IIFE script

Example ​

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