Represents all relevant options that are passed to Webpack config function, needed to create a valid Webpack configuration and configure all plugins.
This is the return type of {@link parseCliOptions}.
• Optional assetsPath: string
Assets output path - directory where generated static assets will be saved.
packages/repack/src/types.ts:161
• Optional bundleFilename: string
Bundle output filename - name under which generated bundle will be saved.
packages/repack/src/types.ts:153
• Optional context: string
Context in which all resolution happens. Usually it's project root directory.
packages/repack/src/types.ts:147
• Optional devServer: DevServerOptions
Development server configuration options.
Used to configure @callstack/repack-dev-server.
If undefined, then development server should not be run.
packages/repack/src/types.ts:175
• Optional entry: string
Input filename - entry point of the bundle.
packages/repack/src/types.ts:150
• Optional minimize: boolean
Whether to minimize the final bundle.
packages/repack/src/types.ts:164
• Optional mode: "development" | "production"
Compilation mode.
packages/repack/src/types.ts:141
• Optional platform: string
Target application platform.
packages/repack/src/types.ts:144
• Optional reactNativePath: string
Path to React Native dependency. Usually points to node_modules/react-native.
packages/repack/src/types.ts:167
• Optional sourceMapFilename: string
Source map filename - name under which generated source map (for the main bundle) will be saved.