You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
499 B

import { AnyConfiguration, InputEnvironment } from '../types';
/**
* Because webpack doesn't support `.bundle` extensions (why should they).
* We need to extract the default settings for source maps and create a native source map plugin.
* This does nothing if the env.platform is not ios or android.
*
* @param webpackConfig
* @param env
*/
export default function withPlatformSourceMaps(webpackConfig: AnyConfiguration, env?: Pick<InputEnvironment, 'platform' | 'mode'>): AnyConfiguration;