Skip to main content
Version: 2x

Class: AssetsResolverPlugin

Plugin for resolving assets (images, audio, video etc) for React Native applications.

Assets processing in React Native differs from Web, Node.js or other targets. This plugin in combination with @callstack/repack/assets-loader allows you to use assets in the same way as you would do when using Metro.

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new AssetsResolverPlugin(config)

Constructs new AssetsResolverPlugin.

Parameters

NameTypeDescription
configAssetsResolverPluginConfigPlugin configuration options.

Defined in

packages/repack/src/webpack/plugins/AssetsResolverPlugin/AssetsResolverPlugin.ts:26

Methods

apply

apply(compiler): void

Apply the plugin.

Parameters

NameTypeDescription
compilerCompilerWebpack compiler instance.

Returns

void

Implementation of

WebpackPlugin.apply

Defined in

packages/repack/src/webpack/plugins/AssetsResolverPlugin/AssetsResolverPlugin.ts:37