Skip to content

Commit

Permalink
fix(itkConfig.ts): Import from './browser/index.js'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
thewtex committed Sep 29, 2022
1 parent cdf86af commit f6a125d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/itkConfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { version } from './index.js'
import { version } from './browser/index.js'

const itkConfig = {
webWorkersUrl: undefined,
Expand Down

0 comments on commit f6a125d

Please sign in to comment.