How to add additional modules to the Modeler?

In the file modeler.js comes an instruction how to add custom modules, I would like to know how I can add them in the same file modeler.js, for example a custom panel. regardsCaptura

import BpmnModeler from 'bpmn-js/lib/Modeler';
import NyanModule from 'bpmn-js-nyan/lib/nyan';

const customModeler = new BpmnModeler({
  additionalModules: [
    NyanModule
  ]
});

Custom Properties panel, an example: bpmn-js-example-react-properties-panel.