diff --git a/packages/dicomImageLoader/src/imageLoader/index.ts b/packages/dicomImageLoader/src/imageLoader/index.ts index 18278f288..d443701e0 100644 --- a/packages/dicomImageLoader/src/imageLoader/index.ts +++ b/packages/dicomImageLoader/src/imageLoader/index.ts @@ -8,7 +8,7 @@ import { import { default as wadouri } from './wadouri/index'; import { default as wadors } from './wadors/index'; -import { default as init } from './init'; +import { default as init } from '../init'; import { default as convertColorSpace } from './convertColorSpace'; import { default as createImage } from './createImage'; import { default as decodeJPEGBaseline8BitColor } from './decodeJPEGBaseline8BitColor'; diff --git a/packages/dicomImageLoader/src/index.ts b/packages/dicomImageLoader/src/index.ts index 5a969e4aa..6f69c81ca 100644 --- a/packages/dicomImageLoader/src/index.ts +++ b/packages/dicomImageLoader/src/index.ts @@ -8,7 +8,7 @@ import { import { default as wadouri } from './imageLoader/wadouri/index'; import { default as wadors } from './imageLoader/wadors/index'; -import { default as init } from './imageLoader/init'; +import { default as init } from './init'; import { default as convertColorSpace } from './imageLoader/convertColorSpace'; import { default as createImage } from './imageLoader/createImage'; import { default as decodeJPEGBaseline8BitColor } from './imageLoader/decodeJPEGBaseline8BitColor'; diff --git a/packages/dicomImageLoader/src/imageLoader/init.ts b/packages/dicomImageLoader/src/init.ts similarity index 75% rename from packages/dicomImageLoader/src/imageLoader/init.ts rename to packages/dicomImageLoader/src/init.ts index 320b14604..113ae7bce 100644 --- a/packages/dicomImageLoader/src/imageLoader/init.ts +++ b/packages/dicomImageLoader/src/init.ts @@ -1,13 +1,11 @@ -import { setOptions, getOptions } from './internal/index'; -import type { LoaderOptions } from '../types'; -import registerLoaders from './registerLoaders'; +import { setOptions } from './imageLoader/internal/index'; +import type { LoaderOptions } from './types'; +import registerLoaders from './imageLoader/registerLoaders'; import { getWebWorkerManager } from '@cornerstonejs/core'; const workerFn = () => { - const instance = new Worker( - new URL('../decodeImageFrameWorker.js', import.meta.url), - { type: 'module' } - ); + const path = new URL('./decodeImageFrameWorker.js', import.meta.url); + const instance = new Worker(path, { type: 'module' }); return instance; };