Home Reference Source
import ProjextReactPlugin from 'projext-plugin-webpack-react/src/plugin.js'
public class | source

ProjextReactPlugin

It updates targets Babel configuration in order to add support for JSX and hot reload.

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 constructor() source

Class constructor.

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:

NameTypeAttributeDescription
app Projext

The projext main container.