Home > @lynx-js/runtime-wrapper-webpack-plugin > RuntimeWrapperWebpackPluginOptions
RuntimeWrapperWebpackPluginOptions interface
The options for RuntimeWrapperWebpackPluginOptions
Signature:
Home > @lynx-js/runtime-wrapper-webpack-plugin > RuntimeWrapperWebpackPluginOptions
The options for RuntimeWrapperWebpackPluginOptions
Signature:
interface RuntimeWrapperWebpackPluginOptions |
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
(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. | ||
|
boolean |
(Optional) Generate standalone lazy bundle. | ||
|
((vars: string[]) => string[]) | string[] |
(Optional) A function that receives the default variable list and returns the list to inject. | ||
|
string |
targetSdkVersion is used to specify the minimal Lynx Engine version that a App bundle can run on. | ||
|
Extract<BannerPluginArgument, { banner: unknown; }>['test'] |
Wrap the emitted JS assets whose filenames match this condition. Assets marked as main thread are never wrapped. |

