ProjextReactPlugin
It updates targets Babel configuration in order to add support for JSX.
Constructor Summary
Public Constructor | ||
public |
Class constructor. |
Method Summary
Public Methods | ||
public |
This is the method called when the plugin is loaded by projext. |
Public Constructors
Public Methods
public register(app: Projext) source
This is the method called when the plugin is loaded by projext. It setups all the listeners for the events the plugin needs to intercept in order to add support for JSX. It also listens for the event that defines the external dependencies, because if the target type is Node or is a library, it should include the React packages as externals.
Params:
Name | Type | Attribute | Description |
app | Projext | The projext main container. |