Skip to content

Commit

Permalink
fix: Webpack externals were not properly defined
Browse files Browse the repository at this point in the history
  • Loading branch information
swederik committed Apr 1, 2022
1 parent f1384af commit 70499a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = (env, argv) => {
/\b(vtk.js)/,
{
'@cornerstonejs/core': {
root: 'window',
root: 'cornerstone3D',
commonjs: '@cornerstonejs/core',
commonjs2: '@cornerstonejs/core',
amd: '@cornerstonejs/core',
Expand Down
16 changes: 8 additions & 8 deletions packages/tools/.webpack/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ module.exports = (env, argv) => {
/\b(vtk.js)/,
{
'@cornerstonejs/core': {
root: 'window',
commonjs: 'cornerstone3D',
commonjs2: 'cornerstone3D',
amd: 'cornerstone3D',
root: 'cornerstone3D',
commonjs: '@cornerstonejs/core',
commonjs2: '@cornerstonejs/core',
amd: '@cornerstonejs/core',
},
'@cornerstonejs/streaming-image-volume-loader': {
root: 'window',
commonjs: 'cornerstoneStreamingImageVolumeLoader',
commonjs2: 'cornerstoneStreamingImageVolumeLoader',
amd: 'cornerstoneStreamingImageVolumeLoader',
root: 'cornerstoneStreamingImageVolumeLoader',
commonjs: '@cornerstonejs/streaming-image-volume-loader',
commonjs2: '@cornerstonejs/streaming-image-volume-loader',
amd: '@cornerstonejs/streaming-image-volume-loader',
},
'gl-matrix': {
root: 'window',
Expand Down

0 comments on commit 70499a5

Please sign in to comment.