Class: RepackTargetPlugin

plugins.RepackTargetPlugin

Plugin for tweaking the JavaScript runtime code to account for React Native environment.

Globally available APIs differ with React Native and other target's like Web, so there are some tweaks necessary to make the final bundle runnable inside React Native's JavaScript VM.

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new RepackTargetPlugin(config?)

Constructs new RepackTargetPlugin.

Parameters

Name Type Description
config? RepackTargetPluginConfig Plugin configuration options.

Defined in

packages/repack/src/webpack/plugins/RepackTargetPlugin/RepackTargetPlugin.ts:27

Methods

apply

apply(compiler): void

Apply the plugin.

Parameters

Name Type Description
compiler Compiler Webpack compiler instance.

Returns

void

Implementation of

WebpackPlugin.apply

Defined in

packages/repack/src/webpack/plugins/RepackTargetPlugin/RepackTargetPlugin.ts:34