For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/runtime-wrapper-webpack-plugin.runtimewrapperwebpackpluginoptions.md.
This is the dev preview website. Check out the document at lynx-stack.dev

Home > @lynx-js/runtime-wrapper-webpack-plugin > RuntimeWrapperWebpackPluginOptions

RuntimeWrapperWebpackPluginOptions interface

The options for RuntimeWrapperWebpackPluginOptions

Signature:

interface RuntimeWrapperWebpackPluginOptions 

Properties

Property

Modifiers

Type

Description

bannerType

(filename: string) => 'script' | 'bundle'

There are two types of banners: script(for app-service) and bundle(for js-render). You can decide to use which banner by the filename.

experimental_isLazyBundle?

boolean

(Optional) Generate standalone lazy bundle.

experimental_reEvalJSOnReload?

boolean

(Optional) Re-evaluate the whole JS bundle on reloadTemplate instead of reusing the JSX of the previous render, so module scoped state of the entry is reset while the element tree is still reused.

injectVars?

((vars: string[]) => string[]) | string[]

(Optional) A function that receives the default variable list and returns the list to inject.

targetSdkVersion

string

targetSdkVersion is used to specify the minimal Lynx Engine version that a App bundle can run on.

test

Extract<BannerPluginArgument, { banner: unknown; }>['test']

Wrap the emitted JS assets whose filenames match this condition. Assets marked as main thread are never wrapped.