Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Using a custom root config

Once your root config is published, you can add it to the packmap package like any other module. If the main line of your root config's package.json is set correctly, packmap should correctly add it to the import map.openmrs-module-spa by default uses @openmrs/esm-root-config as the root config. Change it using the OpenMRS setting "spa.rootConfig" (pending PR)We want to make the import map point to our module for "@openmrs/esm-root-config". Therefore we will add a line to our import map override:

    "@openmrs/esm-root-config": "/openmrs/frontend/@myorg/esm-root-config@1.0.0/dist/myorg-esm-root-config.js"



*Sorry Windows users. Maybe one of you can fill in the equivalent thing to do here?