Skip to content

Commit

Permalink
Fixed bug: cornerstone3D tools does not build with vite
Browse files Browse the repository at this point in the history
  • Loading branch information
ChienChihYeh committed Mar 12, 2024
1 parent aae91ab commit 826ed36
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"sass": "^1.71.1",
"typescript": "~5.3.0",
"vite": "^5.0.11",
"vite-plugin-wasm": "^3.3.0",
"vitest": "^1.2.2",
"vue-tsc": "^1.8.27"
}
Expand Down
8 changes: 3 additions & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ import vueJsx from '@vitejs/plugin-vue-jsx'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
vueJsx(),
],
plugins: [vue(), vueJsx()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@cornerstonejs/tools': '@cornerstonejs/tools/dist/umd/index.js'
}
}
})

0 comments on commit 826ed36

Please sign in to comment.