From 28cec04ff43b81e218c3e9addef4665b3833a6fe Mon Sep 17 00:00:00 2001 From: Joe Boccanfuso <109477394+jbocce@users.noreply.github.com> Date: Wed, 4 Oct 2023 11:27:55 -0400 Subject: [PATCH] fix(cli): Add npm packaged mode not working (#3689) --- platform/cli/templates/mode/.webpack/webpack.prod.js | 6 ++++++ platform/cli/templates/mode/dependencies.json | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/platform/cli/templates/mode/.webpack/webpack.prod.js b/platform/cli/templates/mode/.webpack/webpack.prod.js index 163392a699a..d0829f3c6a2 100644 --- a/platform/cli/templates/mode/.webpack/webpack.prod.js +++ b/platform/cli/templates/mode/.webpack/webpack.prod.js @@ -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: { diff --git a/platform/cli/templates/mode/dependencies.json b/platform/cli/templates/mode/dependencies.json index 9df4547b579..4270837d9fc 100644 --- a/platform/cli/templates/mode/dependencies.json +++ b/platform/cli/templates/mode/dependencies.json @@ -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",