这是开发预览网站。请访问正式文档 lynxjs.org

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

ReactLoaderOptions interface

The options of the ReactLynx plugin.

Signature:

export interface ReactLoaderOptions 

Properties

Property

Modifiers

Type

Description

compat?

CompatVisitorConfig | undefined

(Optional) The compat option controls compatibilities with ReactLynx2.0.

defineDCE?

DefineDceVisitorConfig | undefined

(Optional) Like define in various bundlers, but this one happens at transform time, and a DCE pass will be performed.

enableRemoveCSSScope?

boolean | undefined

(Optional)

enableUiSourceMap?

boolean | undefined

(Optional) Enable UI source map generation and debug-metadata asset emission.

engineVersion?

string | undefined

(Optional) The engine version.

inlineSourcesContent?

boolean | undefined

(Optional) Generate inline source content in source-map.

jsx?

JsxTransformerConfig | undefined

(Optional)

refresh?

boolean | undefined

(Optional) Enable the Fast Refresh for ReactLynx.

shake?

ShakeVisitorConfig | undefined

(Optional) How main-thread code will be shaken.