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.
• new RepackTargetPlugin(config?
)
Constructs new RepackTargetPlugin
.
Name | Type | Description |
---|---|---|
config? |
RepackTargetPluginConfig |
Plugin configuration options. |
packages/repack/src/webpack/plugins/RepackTargetPlugin/RepackTargetPlugin.ts:27
▸ apply(compiler
): void
Apply the plugin.
Name | Type | Description |
---|---|---|
compiler |
Compiler |
Webpack compiler instance. |
void
packages/repack/src/webpack/plugins/RepackTargetPlugin/RepackTargetPlugin.ts:34