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.reactloaderoptions.md.
这是开发预览网站。请访问正式文档 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 legacy ReactLynx.

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.

experimental_transformBuiltinAttributeNames?

boolean | TransformBuiltinAttributeNamesOptions | undefined

(Optional) Transform attribute names on Lynx builtin elements.

experimental_useElementTemplate?

boolean | undefined

(Optional) Whether to enable Element Template compilation.

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.