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