Skip to content

Commit

Permalink
fix(cli): Add npm packaged mode not working (#3689)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbocce authored Oct 4, 2023
1 parent 01d843f commit 28cec04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions platform/cli/templates/mode/.webpack/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ const config = {
amd: '@ohif/ui',
root: '@ohif/ui',
},
'@ohif/mode-longitudinal': {
commonjs2: '@ohif/mode-longitudinal',
commonjs: '@ohif/mode-longitudinal',
amd: '@ohif/mode-longitudinal',
root: '@ohif/mode-longitudinal',
}
},
],
module: {
Expand Down
3 changes: 1 addition & 2 deletions platform/cli/templates/mode/dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"@ohif/core": "^{LATEST_OHIF_VERSION}"
},
"dependencies": {
"@babel/runtime": "^7.20.13",
"@ohif/mode-longitudinal": "^{LATEST_OHIF_VERSION}"
"@babel/runtime": "^7.20.13"
},
"devDependencies": {
"@babel/core": "^7.21.4",
Expand Down

0 comments on commit 28cec04

Please sign in to comment.