Home Manual Reference Source
public class | source

BabelConfiguration

This service is in charge of creating Babel configurations for targets.

Constructor Summary

Public Constructor
public

constructor(events: Events)

Class constructor.

Member Summary

Public Members
public

A local reference for the events service.

Method Summary

Public Methods
public

Get a Babel configuration for a target.

Public Constructors

public constructor(events: Events) source

Class constructor.

Params:

NameTypeAttributeDescription
events Events

To reduce the configurations.

Public Members

public events: Events source

A local reference for the events service.

Public Methods

public getConfigForTarget(target: Target): Object source

Get a Babel configuration for a target. This method uses the event reducer babel-configuration, which sends a Babel configuration and a target information, and expects a Babel configuration on return.

Params:

NameTypeAttributeDescription
target Target

The target information.

Return:

Object