diff --git a/src/bindgen/typescript-resources/itkConfig.js b/src/bindgen/typescript-resources/itkConfig.js new file mode 100644 index 000000000..be9beaf3f --- /dev/null +++ b/src/bindgen/typescript-resources/itkConfig.js @@ -0,0 +1,11 @@ +import version from 'itk-wasm' + +const itkConfig = { + // Use the worker bundled by vite or webpack + pipelineWorkerUrl: null, + imageIOUrl: `https://cdn.jsdelivr.net/npm/itk-image-io@${version}`, + meshIOUrl: `https://cdn.jsdelivr.net/npm/itk-mesh-io@${version}`, + pipelinesUrl: '/pipelines' +} + +export default itkConfig