Interface: RepackPluginConfig

RepackPlugin configuration options.

Table of contents

Properties

Properties

context

context: string

Context in which all resolution happens. Usually it's project root directory.

Defined in

packages/repack/src/webpack/plugins/RepackPlugin.ts:14


devServer

Optional devServer: DevServerOptions

Development server configuration options. Used to configure @callstack/repack-dev-server.

If undefined, then development server will not be used.

Defined in

packages/repack/src/webpack/plugins/RepackPlugin.ts:28


entryName

Optional entryName: string

The entry chunk name, main by default.

Defined in

packages/repack/src/webpack/plugins/RepackPlugin.ts:45


extraChunks

Optional extraChunks: DestinationSpec[]

Options specifying how to deal with extra chunks generated in the compilation, usually by using dynamic import(...) function.

Refer to OutputPluginConfig.extraChunks for more details.

Defined in

packages/repack/src/webpack/plugins/RepackPlugin.ts:53


logger

Optional logger: boolean | { console?: boolean ; file?: string ; listener?: (logEntry: LogEntry) => void }

Options to configure LoggerPlugin's output.

Setting this to false disables LoggerPlugin.

Defined in

packages/repack/src/webpack/plugins/RepackPlugin.ts:60


mode

mode: "development" | "production"

Compilation mode.

Defined in

packages/repack/src/webpack/plugins/RepackPlugin.ts:17


output

output: Object

Output options specifying where to save generated bundle, source map and assets.

Refer to OutputPluginConfig.output for more details.

Type declaration

Name Type Description
assetsPath? string Assets output path - directory where generated static assets will be saved.
auxiliaryAssetsPath? string Auxiliary assets output path - directory where generated auxiliary assets will be saved Useful when working with remote-assets generated by assetsLoader
bundleFilename? string Bundle output filename - name under which generated bundle will be saved.
sourceMapFilename? string Source map filename - name under which generated source map (for the main bundle) will be saved.

Defined in

packages/repack/src/webpack/plugins/RepackPlugin.ts:42


platform

platform: string

Target application platform.

Defined in

packages/repack/src/webpack/plugins/RepackPlugin.ts:20


sourceMaps

Optional sourceMaps: boolean

Whether source maps should be generated. Defaults to true.

Setting this to false, disables any source map generation.

Defined in

packages/repack/src/webpack/plugins/RepackPlugin.ts:35