Interface: CdnModule
Defined in: packages/valaxy/node/types/config.ts:29
Experimental
A module to load from CDN instead of bundling
Properties
css?
optional css: string;Defined in: packages/valaxy/node/types/config.ts:50
Experimental
Optional CSS URL if the module requires stylesheet
Example
'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css'exports?
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
['ref', 'computed', 'watch', 'createApp']global
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
'Vue'name
name: string;Defined in: packages/valaxy/node/types/config.ts:34
Experimental
npm package name to externalize
Example
'vue'url
url: string;Defined in: packages/valaxy/node/types/config.ts:45
Experimental
Full CDN URL to the UMD/IIFE script
Example
'https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.global.prod.js'