# Function __addFeature

- __addFeature(options, id, featureProvider): SubAppOptions | {
  __filename?: string;
  bundleName?: string;
  getModule: Promise<any> | (() => Promise<any>);
  name: string;
  resolveName?: string | false;
  wantFeatures: any[];
  }

- add a feature to subapp options - internal use

  #### Parameters

  - options: SubAppOptions
  - id: string
  - featureProvider: (() => SubAppFeatureFactory)
    - - (): SubAppFeatureFactory

      - #### Returns SubAppFeatureFactory

  #### Returns SubAppOptions | {
  __filename?: string;
  bundleName?: string;
  getModule: Promise<any> | (() => Promise<any>);
  name: string;
  resolveName?: string | false;
  wantFeatures: any[];
  }

  #### Remark

  Internal use

  - Defined in packages/xarc-react/src/common/internal.ts:37