OHIF Viewer sourcemaps are missing

Describe Your Question

Is there a dedicated setting/configuration for generating sourcemaps when building the viewer?

  • Sourcemaps are missing when building OHIF Viewer in Jenkins
  • I’m using version 3.7

What I’m doing

  1. yarn install
  2. yarn run build

The above steps succeed in my local development environment. I can see sourcemaps in the dist folder. However, when the same two steps are executed by Jenkins on the server, the dist folder does not include sourcemaps.

Any suggestions?