From f6a125dea5fe4fb1662d576e16d0d753d9cae700 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Thu, 29 Sep 2022 15:39:44 -0400 Subject: [PATCH] fix(itkConfig.ts): Import from './browser/index.js' Otherwise, this ends up loading './index.js', which brings in Node.js, which causes issues for Vite / Rollup when bundling for the browser. Closes #654 --- src/itkConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/itkConfig.ts b/src/itkConfig.ts index 73f97acb0..122e2a239 100644 --- a/src/itkConfig.ts +++ b/src/itkConfig.ts @@ -1,4 +1,4 @@ -import { version } from './index.js' +import { version } from './browser/index.js' const itkConfig = { webWorkersUrl: undefined,