For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/react-webpack-plugin.reactwebpackplugin.md.
这是开发预览网站。请访问正式文档 lynxjs.org

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

Constructor

Modifiers

Description

(constructor)(options)

Constructs a new instance of the ReactWebpackPlugin class

Properties

Property

Modifiers

Type

Description

defaultOptions

static

Readonly<Required<ReactWebpackPluginOptions>>

defaultOptions is the default options that the ReactWebpackPlugin uses.

loaders

static

Record<keyof typeof LAYERS | 'TESTING', string>

The loaders for ReactLynx.

Methods

Method

Modifiers

Description

apply(compiler)

The entry point of a webpack plugin.