itk-wasm
Version:
High-performance spatial analysis in a web browser, Node.js, and reproducible execution across programming languages and hardware architectures.
10 lines (7 loc) • 433 B
text/typescript
import * as @ from '../../../dist/index.js'
globalThis.@ = @
// Use local, vendored WebAssembly module assets
const viteBaseUrl = import.meta.env.BASE_URL
const pipelinesBaseUrl: string | URL = new URL(`${viteBaseUrl}pipelines`, document.location.origin).href
@.setPipelinesBaseUrl(pipelinesBaseUrl)
@