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

RuntimeWrapperWebpackPluginOptions interface

The options for RuntimeWrapperWebpackPluginOptions

Signature:

interface RuntimeWrapperWebpackPluginOptions 

Properties

PropertyModifiersTypeDescription
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.
injectVars?((vars: string[]) => string[]) | string[](Optional) The variables to be injected into the chunk.
targetSdkVersionstringtargetSdkVersion is used to specify the minimal Lynx Engine version that a App bundle can run on.
testBannerPlugin['options']['test']Include all modules that pass test assertion.