@expo/webpack-config
Version:
The default Webpack configuration used to build Expo apps targeting the web.
20 lines (19 loc) • 726 B
TypeScript
import { Rule } from 'webpack';
import { Environment, Mode } from '../types';
export declare function createBabelLoaderFromEnvironment(env: Pick<Environment, 'locations' | 'projectRoot' | 'config' | 'mode' | 'platform'>): Rule;
/**
* A complex babel loader which uses the project's `babel.config.js`
* to resolve all of the Unimodules which are shipped as ES modules (early 2019).
*/
export default function createBabelLoader({
/**
* The webpack mode: `"production" | "development"`
*/
mode, babelProjectRoot, include, verbose, platform, useCustom, ...options }?: {
useCustom?: boolean;
mode?: Mode;
babelProjectRoot?: string;
include?: string[];
verbose?: boolean;
[key: string]: any;
}): Rule;