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.
• new TargetPlugin()
▸ apply(compiler
): void
Apply the plugin.
Name | Type | Description |
---|---|---|
compiler |
Compiler |
Webpack compiler instance. |
void