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/runtime-wrapper-webpack-plugin.runtimewrapperwebpackplugin.md.
这是开发预览网站。请访问正式文档 lynxjs.org

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

RuntimeWrapperWebpackPlugin class

RuntimeWrapperWebpackPlugin adds runtime wrappers to JavaScript and allow to be loaded by Lynx.

Signature:

declare class RuntimeWrapperWebpackPlugin 

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Constructs a new instance of the RuntimeWrapperWebpackPlugin class

Properties

Property

Modifiers

Type

Description

defaultOptions

static

Readonly<Required<RuntimeWrapperWebpackPluginOptions>>

defaultOptions is the default options that the RuntimeWrapperWebpackPlugin uses.

Methods

Method

Modifiers

Description

apply(compiler)

The entry point of a webpack plugin.