Home > @lynx-js/react-webpack-plugin > ReactWebpackPlugin

ReactWebpackPlugin class

ReactWebpackPlugin allows using ReactLynx with webpack

Signature:

declare class ReactWebpackPlugin 

Example

// webpack.config.js
import { ReactWebpackPlugin } from '@lynx-js/react-webpack-plugin'
export default {
  plugins: [new ReactWebpackPlugin()],
}

Constructors

ConstructorModifiersDescription
(constructor)(options)Constructs a new instance of the ReactWebpackPlugin class

Properties

PropertyModifiersTypeDescription
defaultOptionsstaticReadonly<Required<ReactWebpackPluginOptions>>defaultOptions is the default options that the ReactWebpackPlugin uses.
loadersstaticRecord<keyof typeof LAYERS, string>The loaders for ReactLynx.

Methods

MethodModifiersDescription
apply(compiler)The entry point of a webpack plugin.