<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [XPlugin](./x-components.xplugin.md) &gt; [registerXModule](./x-components.xplugin.registerxmodule.md)

## XPlugin.registerXModule() method

If the plugin has already been installed, it immediately registers a [XModule](./x-components.xmodule.md)<!-- -->. If it has not been installed yet, it stores the module in a list until the plugin is installed.

**Signature:**

```typescript
static registerXModule(xModule: AnyXModule): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  xModule | [AnyXModule](./x-components.anyxmodule.md) | The module to register. |

**Returns:**

void

