Skip to content

Commit

Permalink
docs: update webpack config (#1666)
Browse files Browse the repository at this point in the history
* docs: update webpack config

* update
  • Loading branch information
sedghi authored Dec 4, 2024
1 parent d930f0d commit 762ca59
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/docs/docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ npm install @cornerstonejs/core
npm install @cornerstonejs/tools
npm install @cornerstonejs/dicom-image-loader
npm install @cornerstonejs/nifti-volume-loader

# To use the polymorphic segmentation converters you need to install the following packages as well
npm install @icr/polyseg-wasm
```

## YARN
Expand All @@ -25,6 +28,9 @@ yarn add @cornerstonejs/core
yarn add @cornerstonejs/tools
yarn add @cornerstonejs/dicom-image-loader
yarn add @cornerstonejs/nifti-volume-loader

# To use the polymorphic segmentation converters you need to install the following packages as well
yarn add @icr/polyseg-wasm
```

## PNPM
Expand All @@ -36,4 +42,7 @@ pnpm install @cornerstonejs/core
pnpm install @cornerstonejs/tools
pnpm install @cornerstonejs/dicom-image-loader
pnpm install @cornerstonejs/nifti-volume-loader

# To use the polymorphic segmentation converters you need to install the following packages as well
pnpm install @icr/polyseg-wasm
```
9 changes: 9 additions & 0 deletions packages/docs/docs/getting-started/vue-angular-react-etc.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,12 @@ If you previously used
`noParse: [/(codec)/],`

to avoid parsing codecs in your webpack module, remove that line. The cornerstone3D library now includes the codecs as an ES module.

Also since we are using wasm, you will need to add the following to your webpack configuration in the `module.rules` section:

```javascript
{
test: /\.wasm/,
type: 'asset/resource',
},
```

0 comments on commit 762ca59

Please sign in to comment.