Class: TargetPlugin

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 TargetPlugin()

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/TargetPlugin.ts:20