# Class ModuleProcessor

Process modules from webpack stats for reporter display.

Take webpack Stat JSON output and group modules by npm packages, noting duplicates if there are any.

- Defined in packages/xarc-app-dev/src/lib/module-processor.ts:19

#####
Index

### Constructors

constructor

### Properties

modulesByName
modulesByPackage
statJson
totalSize

### Methods

_splitPathName
makeModulesByName
makeModulesByPackage

## Constructors

### constructor

- new ModuleProcessor(statJson): ModuleProcessor

- #### Parameters

  - statJson: any

  #### Returns ModuleProcessor

  - Defined in packages/xarc-app-dev/src/lib/module-processor.ts:25

## Properties

### modulesByName

modulesByName: any

- Defined in packages/xarc-app-dev/src/lib/module-processor.ts:23

### modulesByPackage

modulesByPackage: any

- Defined in packages/xarc-app-dev/src/lib/module-processor.ts:21

### statJson

statJson: any

- Defined in packages/xarc-app-dev/src/lib/module-processor.ts:20

### totalSize

totalSize: any

- Defined in packages/xarc-app-dev/src/lib/module-processor.ts:22

## Methods

### _splitPathName

- _splitPathName(name): {
  file: any;
  name: any;
  parents: any;
  }

- #### Parameters

  - name: any

  #### Returns {
  file: any;
  name: any;
  parents: any;
  }

  - ##### file: any

  - ##### name: any

  - ##### parents: any

  - Defined in packages/xarc-app-dev/src/lib/module-processor.ts:53

### makeModulesByName

- makeModulesByName(): {}

- #### Returns {}

  - Defined in packages/xarc-app-dev/src/lib/module-processor.ts:30

### makeModulesByPackage

- makeModulesByPackage(): any

- #### Returns any

  - Defined in packages/xarc-app-dev/src/lib/module-processor.ts:90